Skip to content

Commit 7270987

Browse files
committed
Fixes malformed response output
1 parent 92c8eb3 commit 7270987

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Service/Decoder/ResponseDecoder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?php
2-
declare(strict_types=1);
3-
42
namespace App\Service\Decoder;
53

64
use App\Service\Cache;
@@ -53,7 +51,7 @@ public function getDecodedResponse(Request $request)
5351
}
5452

5553
if (json_last_error() !== JSON_ERROR_NONE) {
56-
$decodedResponse = $response->getBody();
54+
$decodedResponse = $response->getBody()->getContents();
5755
}
5856

5957
if ($this->cacheEndpoint) {

0 commit comments

Comments
 (0)