public function allowsNull() { if (null === $this->getTypeHint()) { return true; } if (!$this->isDefaultValueAvailable()) { return false; } return $this->getDefaultValue() === null; }
/** * {@inheritDoc} */ public function allowsNull() { return $this->betterReflectionParameter->allowsNull(); }