dave-liddament/phpstan-php-language-extensions
A PHPStan extension that adds support for extra PHP language features and type declarations, widening static analysis coverage so PHPStan understands more of your code. Helps catch bugs earlier and reduces false positives in Laravel and PHP projects.
php-language-extensions attributes. Best fit is domain/service code where explicit contracts such as purity, immutability, or visibility are valuable; weaker fit for framework-heavy code that relies on Eloquent magic, facades, and container resolution.require-dev Composer dependency, include the extension in phpstan.neon, and run in CI. No production runtime, database, queue, or infrastructure changes. Feasibility drops sharply if PHPStan/Larastan is not already established.php-language-extensions versions are supported? Does it support baselines and per-path excludes? How noisy is it on Laravel/Eloquent code? What is the CI performance cost? Is the companion package required in production or only for analysis? What is the release and compatibility policy?require-dev and out of production images.php-language-extensions versions in composer.lock; validate against the project’s PHP version and CI matrix. Avoid floating major versions. Confirm the extension’s supported PHPStan range before each platform upgrade.How can I help you explore Laravel packages today?