Summary
larastan/larastan is installed in require-dev but the phpstan.neon configuration does not include Larastan's extension. PHPStan runs without Laravel-aware rules, missing Facade type resolution and config return types.
Problem
# phpstan.neon — missing includes directive
includes:
- vendor/larastan/larastan/extension.neon
Without this, PHPStan cannot properly analyze:
- Facade method calls (e.g.,
Asset::find(), Queue::push())
config() return types
- Laravel-specific patterns
Suggested Fix
Add the includes directive to phpstan.neon:
includes:
- vendor/larastan/larastan/extension.neon
parameters:
# existing config...
References
- File:
phpstan.neon
- Consolidated review finding: V11
Summary
larastan/larastanis installed inrequire-devbut thephpstan.neonconfiguration does not include Larastan's extension. PHPStan runs without Laravel-aware rules, missing Facade type resolution and config return types.Problem
Without this, PHPStan cannot properly analyze:
Asset::find(),Queue::push())config()return typesSuggested Fix
Add the includes directive to
phpstan.neon:References
phpstan.neon