diff --git a/psalm.xml b/psalm.xml new file mode 100644 index 0000000..9b8996c --- /dev/null +++ b/psalm.xml @@ -0,0 +1,17 @@ + + + + + + + + + + diff --git a/src/AbstractService.php b/src/AbstractService.php index ddeae82..04820cb 100644 --- a/src/AbstractService.php +++ b/src/AbstractService.php @@ -88,7 +88,7 @@ protected function handleResponse( RequestInterface $request, ResponseInterface $response ): array { - $contents = $response->getBody()->getContents(); + $contents = $response->getBody()->__toString(); $parsedBody = json_decode($contents, true); if (!is_array($parsedBody)) {