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 b1e20a6 commit 46a6c05Copy full SHA for 46a6c05
src/Json.php
@@ -175,6 +175,6 @@ private static function jsonLastError()
175
$collections = self::jsonLastErrorCollections();
176
$jsonLastError = json_last_error();
177
178
- return array_key_exists($jsonLastError, $collections) ? $collections[$jsonLastError] : $collections['default'];
+ return isset($jsonLastError) ? $collections[$jsonLastError] : $collections['default'];
179
}
180
0 commit comments