ReflectionClassConstant::hasType

(PHP 8 >= 8.3.0)

ReflectionClassConstant::hasTypeChecks if class constant has a type

说明

public ReflectionClassConstant::hasType(): bool

Checks if the class constant has a type associated with it.

参数

此函数没有参数。

返回值

true if a type is specified, false otherwise.

参见