Skip to content

Released 14.1

Latest
Compare
Choose a tag to compare
@TomasVotruba TomasVotruba released this 18 Dec 16:20
· 4 commits to main since this release
  • 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.