We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4355bdb commit 0d33b8dCopy full SHA for 0d33b8d
1 file changed
src/PHPQueue/Json.php
@@ -5,6 +5,9 @@
5
6
class Json {
7
public static function safe_decode( $text ) {
8
+ if ( $text === null ) {
9
+ return null;
10
+ }
11
$data = json_decode($text, true);
12
if ( $data === null ) {
13
throw new JsonException("JSON could not be decoded: '{$text}'");
0 commit comments