protected function validateNullType($value, array $schema): ErrorResult
    {
        $result = new ErrorResult();
        if ($value !== null) {
            $result->addError($this->createError('type=NULL', 'type=' . gettype($value)));
        }
        return $result;
    }
protected function validateNullType($value, array $schema): ErrorResult
    {
        $result = new ErrorResult();
        if ($value !== null) {
            $result->addError($this->createError('type=NULL', 'type=' . gettype($value)));
        }
        return $result;
    }
protected function validateNullType ( $ value , array $ schema ) : ErrorResult { $ result = new ErrorResult ( ) ; if ( $ value !== null ) { $ result -> addError ( $ this -> createError ( 'type=NULL' , 'type=' . gettype ( $ value ) ) ) ; } return $ result ; }
Validate a null value with the given schema

@param mixed $value
@param array $schema
@return ErrorResult
Validate a null value with the given schema