Skip to content

PHPStan Rules 14.17

Choose a tag to compare

@TomasVotruba TomasVotruba released this 25 Sep 06:37
· 50 commits to main since this release
c6a60f1

All rule sets are now auto-loaded via phpstan/extension-installer - no includes: needed, just toggle them with a parameter.

New features 🎉

All rule sets auto-loaded, toggle them on/off

Code complexity, configurable, static, Symfony, Symfony config, Doctrine and PHPUnit sets are now registered in extra.phpstan.includes and gated by a symplify.* parameter (#319):

parameters:
    symplify:
        # enabled by default
        naming: true
        complexity: true
        configurable: true
        static: true
        symfony: true
        symfonyConfig: true
        doctrine: true
        phpunit: true

        # disabled by default
        mocks: false
        ctor: false

rector-rules.neon stays opt-in.

⚠️ Drop manual includes of these sets (and symplify-rules.neon) from your phpstan.neon - PHPStan reports duplicated includes.


Bugfixes 🐛

  • [symfony] Skip Symfony\Component\Mailer\Transport in PreferInterfaceInConstructorRule (#320)