(PHP 8 >= 8.3.0)
ReflectionClassConstant::hasType — Checks if class constant has a type
Checks if the class constant has a type associated with it.
This function has no parameters.
true if a type is specified, false otherwise.
true
false