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