(PHP 8 >= 8.3.0)
ReflectionClassConstant::hasType — Checks if class constant has a type
public ReflectionClassConstant::hasType(): bool
Checks if the class constant has a type associated with it.
This function has no parameters.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionclassconstant.hastype.php