PHP 8.4.1 Released!

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.

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top