Note
A set of additional rules for phpstan/phpstan. - 一套针对 phpstan/phpstan 的附加规则。
- PHP >= 7.4
composer require guanguans/phpstan-rules --dev --ansi -vIf you also install phpstan/extension-installer then you're all set!
Manual installation
If you don't want to use phpstan/extension-installer, include rules.neon in your project's PHPStan config:
includes:
- vendor/guanguans/phpstan-rules/config/rules.neonParameter configuration refer to the parameter section the configuration file [config/rules.neon].
You can also refer to the configuration file [tests/Rule/.../.../config/configured_rule.neon] in the tests directory.
composer checks:required
composer php-cs-fixer:fix
composer phpstan-rules:fix-neon-files
composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.