original_string: protected function validateHeaderValue($headerValue) : void
  	{
  		if (\is_string($headerValue))
  		{
  			$headerValue = [$headerValue];
  		}
  
  		if (! \is_array($headerValue) || [] === $headerValue)
  		{
  			throw new \InvalidArgumentException('Header value must be a string or not an empty array');
  		}
  
  		foreach ($headerValue as $oneOf)
  		{
  			if (! \is_string($oneOf))
  			{
  				throw new \InvalidArgumentException('Header value must be a string or an array containing only strings');
  			}
  			else if (! \preg_match(HeaderInterface::RFC7230_FIELD_VALUE, $oneOf))
  			{
  				throw new \InvalidArgumentException(\sprintf('The given header value "%s" is not valid', $oneOf));
  			}
  		}
  	}
code: protected function validateHeaderValue($headerValue) : void
  	{
  		if (\is_string($headerValue))
  		{
  			$headerValue = [$headerValue];
  		}
  
  		if (! \is_array($headerValue) || [] === $headerValue)
  		{
  			throw new \InvalidArgumentException('Header value must be a string or not an empty array');
  		}
  
  		foreach ($headerValue as $oneOf)
  		{
  			if (! \is_string($oneOf))
  			{
  				throw new \InvalidArgumentException('Header value must be a string or an array containing only strings');
  			}
  			else if (! \preg_match(HeaderInterface::RFC7230_FIELD_VALUE, $oneOf))
  			{
  				throw new \InvalidArgumentException(\sprintf('The given header value "%s" is not valid', $oneOf));
  			}
  		}
  	}
code_tokens: protected function validateHeaderValue ( $ headerValue ) : void { if ( \ is_string ( $ headerValue ) ) { $ headerValue = [ $ headerValue ] ; } if ( ! \ is_array ( $ headerValue ) || [ ] === $ headerValue ) { throw new \ InvalidArgumentException ( 'Header value must be a string or not an empty array' ) ; } foreach ( $ headerValue as $ oneOf ) { if ( ! \ is_string ( $ oneOf ) ) { throw new \ InvalidArgumentException ( 'Header value must be a string or an array containing only strings' ) ; } else if ( ! \ preg_match ( HeaderInterface :: RFC7230_FIELD_VALUE , $ oneOf ) ) { throw new \ InvalidArgumentException ( \ sprintf ( 'The given header value "%s" is not valid' , $ oneOf ) ) ; } } }
docstring: Validates the given header value
  
  @param mixed $headerValue
  
  @return void
  
  @throws \InvalidArgumentException
  
  @link https://tools.ietf.org/html/rfc7230#section-3.2
docstring_tokens: Validates the given header value