generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7771a5d
commit e47bc6a
Showing
3 changed files
with
1 addition
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ public function getModels(): Collection | |
if ($this->argument('id')) { | ||
$class = $this->qualifyModel($this->argument('modelOrCollection')); | ||
$this->collectionName = $class.':'.$this->argument('id'); | ||
|
||
/** @var class-string<Model> $class */ | ||
return collect([ | ||
$class::findOrFail( | ||
|
@@ -93,8 +94,6 @@ public function getModels(): Collection | |
/** | ||
* Qualify the given model class base name. | ||
* | ||
* @param string $model | ||
* @return string | ||
* | ||
* @see \Illuminate\Console\GeneratorCommand | ||
*/ | ||
|
@@ -123,7 +122,6 @@ protected function qualifyModel(string $model): string | |
* Qualify the given collection class base name. | ||
* | ||
* @param string $model | ||
* @return string | ||
*/ | ||
protected function qualifyCollection(string $collection): string | ||
Check failure on line 126 in src/Commands/LaravelModelWatchCommand.php GitHub Actions / phpstan
|
||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters