ReflectionClassConstant::getType
PHP function
Edit on GitHub ✎
(PHP 8 >= 8.3.0)
Gets a class constant's type
Description
ReflectionClassConstant::getType(): ReflectionType|null
Gets the associated type of a class constant.
Parameters Parameters
Return Values
Returns a ReflectionType object if a constant type is specified, null otherwise.
See Also
ReflectionClassConstant::hasTypeReflectionType