We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c76726e commit 0bb38c1Copy full SHA for 0bb38c1
src/HttpClient/Util/JsonArray.php
@@ -39,7 +39,7 @@ public static function decode(string $json): array
39
throw new RuntimeException(\sprintf('json_decode error: %s', \json_last_error_msg()));
40
}
41
42
- if (null === $data || !\is_array($data)) {
+ if (!\is_array($data)) {
43
throw new RuntimeException(\sprintf('json_decode error: Expected JSON of type array, %s given.', \get_debug_type($data)));
44
45
0 commit comments