- Create "phpstan.neon" in project directory. For more configuration options, see Advanced Usage.
includes:
- vendor/syntro/silverstripe-phpstan/phpstan.neon
- Execute from project dir:
vendor/bin/phpstan analyse app/src -c phpstan.neon -a vendor/syntro/silverstripe-phpstan/bootstrap.php --level 4
- Visit the PHPStan Github for additional information. Try adjusting the
--level
, lower = less strict, higher = more strict.