PHP 8.5.0 Alpha 2 available for testing

ReflectionClassConstant::hasType

(PHP 8 >= 8.3.0)

ReflectionClassConstant::hasTypeVerifica si una constante de clase tiene un tipo

Descripción

public ReflectionClassConstant::hasType(): bool

Verifica si la constante de clase tiene un tipo asociado.

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

true si un tipo está especificado, de lo contrario false.

Ver también

add a note

User Contributed Notes

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