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));
		}
	}
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));
		}
	}
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 ) ) ; } }
Validates the given method

@param mixed $method

@return void

@throws \InvalidArgumentException

@link https://tools.ietf.org/html/rfc7230#section-3.1.1
Validates the given method