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