private function isValueValid(array $values): bool
    {
        foreach ($values as $value) {
            if (\preg_match("/[^\t\r\n\x20-\x7e\x80-\xfe]|\r\n/", $value)) {
                return false;
            }
        }

        return true;
    }
private function isValueValid(array $values): bool
    {
        foreach ($values as $value) {
            if (\preg_match("/[^\t\r\n\x20-\x7e\x80-\xfe]|\r\n/", $value)) {
                return false;
            }
        }

        return true;
    }
private function isValueValid ( array $ values ) : bool { foreach ( $ values as $ value ) { if ( \ preg_match ( "/[^\t\r\n\x20-\x7e\x80-\xfe]|\r\n/" , $ value ) ) { return false ; } } return true ; }
Determines if the given value is a valid header value.

@param string[] $values

@return bool

@throws \Error If the given value cannot be converted to a string and is not an array of values that can be
converted to strings.
Determines if the given value is a valid header value .