src/FilterFunnel.php
public function addSanitizer($sanitizer, ...$params)
    {
        if (!$sanitizer instanceof SanitizerInterface) {
            $sanitizer = $this->filterClassMap->getSanitizer($sanitizer);
            $sanitizer = new $sanitizer(...$params);
        }
        $this->chain[] = $sanitizer;

        return $this;
    }
public function addSanitizer($sanitizer, ...$params)
    {
        if (!$sanitizer instanceof SanitizerInterface) {
            $sanitizer = $this->filterClassMap->getSanitizer($sanitizer);
            $sanitizer = new $sanitizer(...$params);
        }
        $this->chain[] = $sanitizer;

        return $this;
    }
@param SanitizerInterface|string $sanitizer
@param mixed                     $params

@throws \InvalidArgumentException

@return FilterFunnel