ReflectionClassConstant::hasType
PHP function
Edit on GitHub ✎
(PHP 8 >= 8.3.0)
Checks if class constant has a type
Description
ReflectionClassConstant::hasType(): bool
Checks if the class constant has a type associated with it.
Parameters Parameters
Return Values
true if a type is specified, false otherwise.
See Also
ReflectionClassConstant::getTypeReflectionType