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 2fb86d6 commit 17f6f9aCopy full SHA for 17f6f9a
Php83.php
@@ -35,7 +35,7 @@ public static function json_validate(string $json, int $depth = 512, int $flags
35
throw new \ValueError(sprintf('json_validate(): Argument #2 ($depth) must be less than %d', self::JSON_MAX_DEPTH));
36
}
37
38
- json_decode($json, null, $depth, $flags);
+ json_decode($json, true, $depth, $flags);
39
40
return \JSON_ERROR_NONE === json_last_error();
41
0 commit comments