From 027096e047295de02a0a05fa199ba25d955f8a12 Mon Sep 17 00:00:00 2001 From: Hector Mendoza Jacobo Date: Sat, 30 Nov 2024 00:08:53 +0000 Subject: [PATCH] Cast a response url to String --- src/HttpHandler/Guzzle6HttpHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpHandler/Guzzle6HttpHandler.php b/src/HttpHandler/Guzzle6HttpHandler.php index 0563aa91d..428758ed3 100644 --- a/src/HttpHandler/Guzzle6HttpHandler.php +++ b/src/HttpHandler/Guzzle6HttpHandler.php @@ -62,7 +62,7 @@ public function __invoke(RequestInterface $request, array $options = []) $requestEvent = new RpcLogEvent(); $requestEvent->method = $request->getMethod(); - $requestEvent->url = $request->getUri()->__toString(); + $requestEvent->url = (string) $request->getUri(); $requestEvent->headers = $request->getHeaders(); $requestEvent->payload = $request->getBody()->getContents(); $requestEvent->retryAttempt = $options['retryAttempt'] ?? null;