Skip to content

Commit

Permalink
int-589 Исправлена ошибка при добавлении логгера в стек обработчиков …
Browse files Browse the repository at this point in the history
…http-клиента
  • Loading branch information
Dmitry Gladyshev committed Dec 17, 2024
1 parent fadb5d1 commit 9037872
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<psalm
errorLevel="1"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
cacheDirectory="./runtime/psalm"
>
<projectFiles>
<directory name="src/" />
</projectFiles>

<issueHandlers>
<LessSpecificReturnType errorLevel="info" />
</issueHandlers>
</psalm>
2 changes: 1 addition & 1 deletion src/AbstractService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 9037872

Please sign in to comment.