Skip to content

Commit 82829c4

Browse files
Fixed typo
1 parent 7ddc86d commit 82829c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HttpClient/Message/ResponseMediator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function getContent(ResponseInterface $response)
5252
{
5353
$body = (string) $response->getBody();
5454

55-
if (\in_array($body, ['', 'null', 'true', 'false'], true) && 0 === \strpos($response->getHeaderLine(self::CONTENT_TYPE_HEADER), self::JSON_CONTENT_TYPE)) {
55+
if (!\in_array($body, ['', 'null', 'true', 'false'], true) && 0 === \strpos($response->getHeaderLine(self::CONTENT_TYPE_HEADER), self::JSON_CONTENT_TYPE)) {
5656
return JsonArray::decode($body);
5757
}
5858

0 commit comments

Comments
 (0)