Assert\AssertionChain::nullOr PHP Méthode

nullOr() public méthode

Switch chain into mode allowing nulls, ignoring further assertions.
public nullOr ( ) : AssertionChain
Résultat AssertionChain
    public function nullOr()
    {
        if ($this->value === null) {
            $this->alwaysValid = true;
        }
        return $this;
    }