Assert\Assert::thatNullOr PHP Method

thatNullOr() public static method

Start validation and allow NULL, returns {@link AssertionChain}
public static thatNullOr ( mixed $value, string $defaultMessage = null, string $defaultPropertyPath = null ) : AssertionChain
$value mixed
$defaultMessage string
$defaultPropertyPath string
return AssertionChain
    public static function thatNullOr($value, $defaultMessage = null, $defaultPropertyPath = null)
    {
        return static::that($value, $defaultMessage, $defaultPropertyPath)->nullOr();
    }