From bbf34cc9d9426307f91e1583f3657223976c60f1 Mon Sep 17 00:00:00 2001 From: Abderrahim Benmakhlouf Date: Thu, 22 Jun 2023 10:28:01 +0200 Subject: [PATCH] Fix bad conversion for response content on psr response --- src/Definition/Example/ResponseExample.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Definition/Example/ResponseExample.php b/src/Definition/Example/ResponseExample.php index 7f94490..612b20e 100644 --- a/src/Definition/Example/ResponseExample.php +++ b/src/Definition/Example/ResponseExample.php @@ -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; }