Skip to content

14.14.1

Choose a tag to compare

@TomasVotruba TomasVotruba released this 21 Sep 09:00
· 47 commits to main since this release
bdc672f

Patch release.

🐛 Improvements

NoNullableServiceInConstructorRule — skip data-holder namespaces (#290)

The rule no longer flags nullable constructor params in classes that are plainly data holders, not services. A class whose namespace contains \Entity\, \Event\, \DTO\, \Message\, \DAO\, \Token\, \Exception\, \Helper\, \ValueObject\, \Form\Type\ or \Badge\ is skipped whole — their constructors carry nullable values (events, DTOs, tokens, exceptions, helpers, form types, security badges), not container services.

The existing skips stay: abstract classes, Throwable/DateTimeInterface values, a same-typed non-nullable sibling param, and anonymous classes.

No consumer-side ignoreErrors needed for those namespaces anymore.