ReflectionParameter::allowsNull

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::allowsNullVerifica si el valor null está permitido como valor del argumento

Descripción

public ReflectionParameter::allowsNull(): bool

Verifica si el valor null está permitido como valor del argumento.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

true si el valor null está permitido como valor del argumento, false en caso contrario.

Ver también