(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.
此函数没有参数。
true if a type is specified, false otherwise.
true
false