ReflectionParameter::allowsNull

( excerpt from http://php.net/manual/en/reflectionparameter.allowsnull.php )

public function allowsNull();

Checks whether the parameter allows NULL. Warning: This function is currently not documented; only its argument list is available.

Returns

  • mixed - TRUE if NULL is allowed, otherwise FALSE