src/Validator/Chain.php
public function remove($validator = ''): Chain
    {
        if (!\is_string($validator)) {
            throw new InvalidArgumentException('Validator name must be a string');
        }
        if (isset($this->chain[$validator])) {
            unset($this->chain[$validator]);
        }
        return $this;
    }
public function remove($validator = ''): Chain
    {
        if (!\is_string($validator)) {
            throw new InvalidArgumentException('Validator name must be a string');
        }
        if (isset($this->chain[$validator])) {
            unset($this->chain[$validator]);
        }
        return $this;
    }
public function remove ( $ validator = '' ) : Chain { if ( ! \ is_string ( $ validator ) ) { throw new InvalidArgumentException ( 'Validator name must be a string' ) ; } if ( isset ( $ this -> chain [ $ validator ] ) ) { unset ( $ this -> chain [ $ validator ] ) ; } return $ this ; }
Removes validator from chain

@param string $validator
@return Chain
Removes validator from chain