Skip to content

Commit

Permalink
Merge pull request #18 from muskie9/bugfix/responseToStringConversion
Browse files Browse the repository at this point in the history
BUGFIX GuzzleHttp\Psr7\Response cannot be converted to a string
  • Loading branch information
adamjudd authored Jun 2, 2023
2 parents fcac691 + c20ef15 commit dc12c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Foxy/FoxyClient/FoxyClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ private function handleException(\Exception $e)
$response = $e->getResponse();
$error = array_merge($error, array(
"error_code" => $response->getStatusCode(),
"response" => (string)$response,
"response" => (string)$response->getReasonPhrase(),
"error_contents" => (string) $response->getBody()->getContents()
));
}
Expand Down

0 comments on commit dc12c4c

Please sign in to comment.