Skip to content

Commit

Permalink
fix return object is not array
Browse files Browse the repository at this point in the history
  • Loading branch information
jhowbhz committed Nov 29, 2022
1 parent 1ebb56c commit 8f16208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit 8f16208

Please sign in to comment.