(PHP 5, PHP 7, PHP 8)
ReflectionParameter::allowsNull — Checks if null is allowed
Checks whether the parameter allows null.
null
This function has no parameters.
true if null is allowed, otherwise false
true
false