src/Sanitizer/StripTags.php
public function sanitize($value)
    {
        if (!is_scalar($value)) {
            throw new \InvalidArgumentException('Unexpected type: '.gettype($value));
        }

        return strip_tags($value, $this->allowedTags);
    }
public function sanitize($value)
    {
        if (!is_scalar($value)) {
            throw new \InvalidArgumentException('Unexpected type: '.gettype($value));
        }

        return strip_tags($value, $this->allowedTags);
    }
{@inheritdoc}