From 8f16208aa94f11a39b504a084fd0306d2711d6c5 Mon Sep 17 00:00:00 2001 From: Jonathan Henrique Date: Tue, 29 Nov 2022 02:25:03 -0300 Subject: [PATCH] fix return object is not array --- src/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Base.php b/src/Base.php index 314c7fe..33fd032 100644 --- a/src/Base.php +++ b/src/Base.php @@ -27,7 +27,7 @@ public static function defaultRequest(String $method, String $base_uri, String $ $request = new Request($method, $action, $headers, json_encode($body)); // create request $response = $client->send($request); // send request - return json_decode($response->getBody()->getContents(), true); // return response + return json_decode($response->getBody()->getContents()); // return response object } catch (ClientException $e) {