From d1b4dd7794896e1f57e90080ee680d71e5c49d9e Mon Sep 17 00:00:00 2001 From: Laurent De Coninck Date: Wed, 9 Jul 2025 14:00:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Bfix:=20#151=20-=20=20Fix=20the=20UT?= =?UTF-8?q?F=20malformated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api.php b/src/Api.php index be72110..50e6422 100644 --- a/src/Api.php +++ b/src/Api.php @@ -374,7 +374,7 @@ private function decodeResponse(ResponseInterface $response) if ($response->getStatusCode() === 204 || $response->getBody()->getSize() === 0) { return null; } - return json_decode($response->getBody(), true, 512, JSON_THROW_ON_ERROR); + return json_decode($response->getBody(), true, 512, JSON_THROW_ON_ERROR | JSON_INVALID_UTF8_IGNORE); } /**