Icicle\Http\Message\BasicUri::filterValue PHP Метод

filterValue() защищенный Метод

Converts a given query value to an integer-indexed array of strings.
protected filterValue ( mixed | mixed[] $values ) : array
$values mixed | mixed[]
Результат array
    protected function filterValue($values) : array
    {
        if (!is_array($values)) {
            $values = [$values];
        }
        $lines = [];
        foreach ($values as $value) {
            if (is_numeric($value) || is_null($value) || is_object($value) && method_exists($value, '__toString')) {
                $value = (string) $value;
            } elseif (!is_string($value)) {
                throw new InvalidValueException('Query values must be strings or an array of strings.');
            }
            $lines[] = decode($value);
        }
        return $lines;
    }