2.3.0
New features
- enforceListReturn: prefer
@return list<T>
over@return array<T>
where possible (#76) - forbidIdenticalClassComparison: deny
===
,!==
for configured objects (useful forDateTimeInterface
,Brick/Money
and similar)
Fixes
- forbidCustomFunctions: proper config validation (#83)
- forbidUnusedException: fix false positive within ternary or yield (#79)
- forbidUnusedMatch: fix false positive within ternary (#79)
- uselessPrivatePropertyNullabilityRule: fix false positive with non-typehinted properties (#78)
- uselessNullableReturn: fix false positive with
return;
(#82)
Dependencies:
phpstan/phpstan
now requires at least 1.9.1 (was 1.8.7, see #76)