Improvements 🔧
Bugfixes 🐛
- Fix ReflectionGetAttributesMethodReturnTypeExtension for UnionTypes (#5463), #14466, thanks @VincentLanglet and @staabm!
- Fix ErrorType leaking from array_key_exists with union key types in loops (#5487), #14489, thanks @VincentLanglet and @staabm!
- Fix infinite loop on recursive trait (#5488), thanks @samsonasik!
- Do not re-wrap
NeverTypeasTemplateMixedTypeinTemplateUnionType::filterTypes()(#5500), #14504 - Read class-constant
@vartype without triggering@extendsresolution (#5502), #14501
Internals 🔍
- Improve
UnionType::accepts()(phpstan/phpstan-src@5cfa80a)