src/FilterFunnel.php
public function addValidator($validator, ...$params)
    {
        if (!$validator instanceof ValidatorInterface) {
            $validator = $this->filterClassMap->getValidator($validator);
            $validator = new $validator(...$params);
        }
        $this->chain[] = $validator;

        return $this;
    }
public function addValidator($validator, ...$params)
    {
        if (!$validator instanceof ValidatorInterface) {
            $validator = $this->filterClassMap->getValidator($validator);
            $validator = new $validator(...$params);
        }
        $this->chain[] = $validator;

        return $this;
    }
@param ValidatorInterface|string $validator
@param mixed                     $params

@throws \InvalidArgumentException

@return FilterFunnel