Skip to content

Commit

Permalink
Merge pull request #54 from OpenClassrooms/OC-48016-fix-bad-conversio…
Browse files Browse the repository at this point in the history
…n-for-response-content-on-psr-response

fix(ResponseExample): Fix bad conversion for response content on PSR response
  • Loading branch information
abderrahim-benmakhlouf authored Jun 26, 2023
2 parents aef21f9 + bbf34cc commit 8d2b024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Definition/Example/ResponseExample.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static function fromPsrResponse(ResponseInterface $response): self
$example = new self();
$example->setStatusCode((string) $response->getStatusCode());
$example->setHeaders($response->getHeaders());
$example->setContent($response->getBody()->getContents());
$example->setContent((string) $response->getBody());

return $example;
}
Expand Down

0 comments on commit 8d2b024

Please sign in to comment.