original_string: protected function validateMethod($method) : void
  	{
  		if (! \is_string($method))
  		{
  			throw new \InvalidArgumentException('HTTP method must be a string');
  		}
  		else if (! \preg_match(HeaderInterface::RFC7230_TOKEN, $method))
  		{
  			throw new \InvalidArgumentException(\sprintf('The given method "%s" is not valid', $method));
  		}
  	}
code: protected function validateMethod($method) : void
  	{
  		if (! \is_string($method))
  		{
  			throw new \InvalidArgumentException('HTTP method must be a string');
  		}
  		else if (! \preg_match(HeaderInterface::RFC7230_TOKEN, $method))
  		{
  			throw new \InvalidArgumentException(\sprintf('The given method "%s" is not valid', $method));
  		}
  	}
code_tokens: protected function validateMethod ( $ method ) : void { if ( ! \ is_string ( $ method ) ) { throw new \ InvalidArgumentException ( 'HTTP method must be a string' ) ; } else if ( ! \ preg_match ( HeaderInterface :: RFC7230_TOKEN , $ method ) ) { throw new \ InvalidArgumentException ( \ sprintf ( 'The given method "%s" is not valid' , $ method ) ) ; } }
docstring: Validates the given method
  
  @param mixed $method
  
  @return void
  
  @throws \InvalidArgumentException
  
  @link https://tools.ietf.org/html/rfc7230#section-3.1.1
docstring_tokens: Validates the given method