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 Nov 30, 2024
1 parent c4961af commit b3e3883
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 b3e3883

Please sign in to comment.