1.1.0
New features:
RequirePreviousExceptionPassRule
can be checking more cases whenreportEvenIfExceptionIsNotAcceptableByRethrownOne
option is used- New rule
AllowComparingOnlyComparableTypesRule
for strict usage of <,>,<=,>=,<=> - New rule
BackedEnumGenericsRule
allowing to hack generics intoBackedEnum
in PHP 8.1 - New rule
ForbidEnumInFunctionArgumentsRule
checking dangerous usage of enums in array functions likearray_diff
,sort
,implode
and much more - New rule
ForbidCustomFunctionsRule
allowing you to deny method calls as you need, e.g.: uselessReflectionProperty::setAccessible
on PHP 8.1
Dependencies
phpstan/phpstan
now requires at least 1.8.1 (was 1.5.6, see #15)