Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Dec 3, 2024
1 parent a32f79a commit b5464b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Database/Console/PruneCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Database\Console\PruneCommand as BasePruneCommand;
use Illuminate\Database\Eloquent\MassPrunable;
use Illuminate\Database\Eloquent\Prunable;
use Illuminate\Support\Facades\Event;
use Winter\Storm\Support\Facades\File;

class PruneCommand extends BasePruneCommand
Expand Down Expand Up @@ -53,7 +54,7 @@ protected function findModels()
* });
*
*/
$models = \Event::fire('system.console.model.prune.findModels', [$this], true);
$models = Event::fire('system.console.model.prune.findModels', [$this], true);

Check failure on line 57 in src/Database/Console/PruneCommand.php

View workflow job for this annotation

GitHub Actions / Code Analysis

Call to an undefined static method Illuminate\Support\Facades\Event::fire().
if ($models instanceof \Illuminate\Support\Collection) {
return $models;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use InvalidArgumentException;
use ReflectionClass;
use Symfony\Component\Finder\Finder;
use Winter\Storm\Support\Collection;
use Illuminate\Support\Collection;
use Winter\Storm\Support\Facades\Config;

/**
Expand Down

0 comments on commit b5464b4

Please sign in to comment.