@@ -66,8 +66,8 @@ |
||
| 66 | 66 | case JsonToken::NUMBER: |
| 67 | 67 | $type = new TypeToken(TypeToken::FLOAT); |
| 68 | 68 | break; |
| 69 | - case JsonToken::NULL: |
|
| 70 | - $type = new TypeToken(TypeToken::NULL); |
|
| 69 | + case JsonToken::null: |
|
| 70 | + $type = new TypeToken(TypeToken::null); |
|
| 71 | 71 | break; |
| 72 | 72 | default: |
| 73 | 73 | throw new JsonSyntaxException( |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | */ |
| 57 | 57 | public function read(JsonReadable $reader): ?array |
| 58 | 58 | { |
| 59 | - if ($reader->peek() === JsonToken::NULL) { |
|
| 59 | + if ($reader->peek() === JsonToken::null) { |
|
| 60 | 60 | return $reader->nextNull(); |
| 61 | 61 | } |
| 62 | 62 | |