Improvements 🔧
- New method
Type::getEnumCases()
to use instead ofinstanceof EnumCaseObjectType
(phpstan/phpstan-src@a0242e0)
Bugfixes 🐛
- Last
elseif
can be exhaustive and noelse
branch is needed (phpstan/phpstan-src@94e6e46), #7547 - Fix resolving of
__CLASS__
,__NAMESPACE__
in traits (#2043), #3019, thanks @staabm! class_implements
dynamic return type extension (#2023), #4335, thanks @VincentLanglet!
Function signature fixes 🤖
ReflectionClass::newInstanceArgs()
type fix for named arguments (#2176), #8679, thanks @s3b4stian!