The ReflectionType class ReflectionType
&reftitle.intro; The ReflectionType class reports information about a function's return type. The Reflection extension declares the following subtypes: ReflectionNamedType (as of PHP 7.1.0) ReflectionUnionType (as of PHP 8.0.0)
&reftitle.classsynopsis; ReflectionType abstract ReflectionType &Methods;
&reftitle.changelog; &Version; &Description; 8.0.0 ReflectionType has become abstract and ReflectionType::isBuiltin has been moved to ReflectionNamedType::isBuiltin.
&reference.reflection.entities.reflectiontype;