- upgraded to PHPStan 2.0
- upgraded to PHP Parser 5.3
New Rules 🥳
- #152 - Added
NoValueObjectInServiceConstructorRule
to improve service architecture - #153 - Added many new rules
General
- Added
NoConstructorOverrideRule
Symfony
- Added
NoAbstractControllerConstructorRule
- Added
NoRequiredOutsideClassRule
- Added
SingleArgEventDispatchRule
- Added
NoListenerWithoutContractRule
- Added
NoStringInGetSubscribedEventsRule
Doctrine
- Added
NoGetRepositoryOutsideServiceRule
- Added
NoParentRepositoryRule
- Added
NoRepositoryCallInDataFixtureRule
PHPUnit
- Added
PublicStaticDataProviderRule
- Added
NoMockOnlyTestRule
- Added
NoDocumentMockingRule
- Added
NoEntityMockingRule
Removed rules 💀
Following rules were quite complex and niche to use in the wild. Instead, developers should decide based on context.
- #156 - Removed
NoSingleInterfaceImplementerRule
- #154 - Removed
NoReturnArrayVariableListRule
- #150 - Removed
CheckClassNamespaceFollowPsr4Rule
, use https://github.com/shipmonk-rnd/composer-dependency-analyser that does the same job better - #151 - Removed
RegexSuffixInRegexConstantRule
,NoInlineStringRegexRule
,AnnotateRegexClassConstWithRegexLinkRule
to ease working with regular expressions