Skip to content

Commit

Permalink
Replaced implicit URI to string coercion (#2946)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 6, 2021
1 parent e6765c0 commit 01611d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Exception/RequestException.php
Expand Up @@ -99,7 +99,7 @@ public static function create(
'%s: `%s %s` resulted in a `%s %s` response',
$label,
$request->getMethod(),
$uri,
$uri->__toString(),
$response->getStatusCode(),
$response->getReasonPhrase()
);
Expand Down
2 changes: 1 addition & 1 deletion src/MessageFormatter.php
Expand Up @@ -137,7 +137,7 @@ function (array $matches) use ($request, $response, $error, &$cache) {
break;
case 'uri':
case 'url':
$result = $request->getUri();
$result = $request->getUri()->__toString();
break;
case 'target':
$result = $request->getRequestTarget();
Expand Down

0 comments on commit 01611d9

Please sign in to comment.