Releases: shipmonk-rnd/phpstan-rules
Releases · shipmonk-rnd/phpstan-rules
2.12.0
2.11.3
2.11.2
2.11.1
2.11.0
New features:
- forbidNotNormalizedType: deny
Child|Parent
within unions or intersections; there is nomixed|false
, justmixed
(#185) - enforceClosureParamNativeTypehint: enforce closures and array function to have typehinted parameters; configurable to omit when inferred (#192)
2.10.2
2.10.1
2.10.0
New features
- forbidArithmeticOperationOnNonNumber: deny arithmetic operations like
$a + $b
over non numbers (#180) - forbidIncrementDecrementOnNonInteger: deny
$i++
,$i--
,++$i
,--$i
with any non-integer (#179) - Add error identifiers to all rules: usable in upcoming PHPStan 1.11 (#140)