Skip to content

Update PHPStan packages (major) #4992

Update PHPStan packages (major)

Update PHPStan packages (major) #4992

Triggered via pull request December 12, 2024 16:34
Status Failure
Total duration 1m 27s
Artifacts

phpstan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
phpstan: app/Http/Middleware/Authenticate.php#L17
Method App\Http\Middleware\Authenticate::redirectTo() should return string|null but return statement is missing.
phpstan: app/Models/User.php#L22
PHPDoc type array<int, string> of property App\Models\User::$fillable is not covariant with PHPDoc type list<string> of overridden property Illuminate\Database\Eloquent\Model::$fillable.
phpstan: app/Models/User.php#L31
PHPDoc type array<int, string> of property App\Models\User::$hidden is not covariant with PHPDoc type list<string> of overridden property Illuminate\Database\Eloquent\Model::$hidden.
phpstan: packages/builder/src/Generators/Entity/MigrationGenerator.php#L109
Parameter #1 $array (array<non-falsy-string>) to function array_filter does not contain falsy values, the array will always stay the same.
phpstan: packages/builder/src/Services/Build/BuildRecorder.php#L153
Call to function method_exists() with Moox\Builder\Blocks\AbstractBlock and 'getUseStatements' will always evaluate to true.
phpstan: packages/builder/src/Services/Build/BuildRecorder.php#L160
Call to function method_exists() with Moox\Builder\Blocks\AbstractBlock and 'getTraits' will always evaluate to true.
phpstan: packages/builder/src/Services/Build/BuildRecorder.php#L167
Call to function method_exists() with Moox\Builder\Blocks\AbstractBlock and 'getMethods' will always evaluate to true.
phpstan: packages/builder/src/Services/Build/BuildRecorder.php#L170
Call to function method_exists() with Moox\Builder\Blocks\AbstractBlock and 'getFormFields' will always evaluate to true.
phpstan: packages/builder/src/Services/Build/BuildRecorder.php#L173
Call to function method_exists() with Moox\Builder\Blocks\AbstractBlock and 'getTableColumns' will always evaluate to true.
phpstan: packages/builder/src/Traits/HandlesMigrationFiles.php#L9
Trait Moox\Builder\Traits\HandlesMigrationFiles is used zero times and is not analysed.
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636