PHP 8.4.2 Released!

ReflectionClassConstant::hasType

(PHP 8 >= 8.3.0)

ReflectionClassConstant::hasTypeChecks if class constant has a type

Beschreibung

public ReflectionClassConstant::hasType(): bool

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

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

true if a type is specified, false otherwise.

Siehe auch

add a note

User Contributed Notes

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