Support Disjunctive Normal Form types
sebastianbergmann opened this issue · 0 comments
sebastianbergmann commented
PHP 8.2 adds support for Disjunctive Normal Form Types:
This RFC does not introduce any new reflection classes. However, it does make one change to the Reflection API, in that
ReflectionUnionType::getTypes()
previously was guaranteed to always return an array ofReflectionNamedType
instances. Now it will return some combination ofReflectionNamedType
andReflectionIntersectionType
instances. The method is already typed to returnReflectionType
so this is not an API change, but the previous de facto assumption is no longer valid.