Skip to content

Commit

Permalink
Cast a response url to String
Browse files Browse the repository at this point in the history
  • Loading branch information
Hectorhammett committed Dec 2, 2024
1 parent a897b0b commit 027096e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpHandler/Guzzle6HttpHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 027096e

Please sign in to comment.