PHPStan rules for Rector and projects that maintain Rector rulesets.
composer require rector/phpstan-rules --devDo you use PHPStan extension installer? The config is added automatically.
If not, add it to phpstan.neon:
includes:
- vendor/rector/phpstan-rules/config/config.neon