@@ -25,6 +25,6 @@ |
||
| 25 | 25 | public const STRING = 'string'; |
| 26 | 26 | public const BOOLEAN = 'boolean'; |
| 27 | 27 | public const NUMBER = 'number'; |
| 28 | - public const NULL = 'null'; |
|
| 28 | + public const null = 'null'; |
|
| 29 | 29 | public const NAME = 'name'; |
| 30 | 30 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function read(JsonReadable $reader): ?bool |
| 30 | 30 | { |
| 31 | - if ($reader->peek() === JsonToken::NULL) { |
|
| 31 | + if ($reader->peek() === JsonToken::null) { |
|
| 32 | 32 | $reader->nextNull(); |
| 33 | 33 | return null; |
| 34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function read(JsonReadable $reader): ?int |
| 30 | 30 | { |
| 31 | - if ($reader->peek() === JsonToken::NULL) { |
|
| 31 | + if ($reader->peek() === JsonToken::null) { |
|
| 32 | 32 | $reader->nextNull(); |
| 33 | 33 | return null; |
| 34 | 34 | } |
@@ -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 | $reader->nextNull(); |
| 61 | 61 | return null; |
| 62 | 62 | } |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | */ |
| 97 | 97 | public function read(JsonReadable $reader) |
| 98 | 98 | { |
| 99 | - if ($reader->peek() === JsonToken::NULL) { |
|
| 99 | + if ($reader->peek() === JsonToken::null) { |
|
| 100 | 100 | $reader->nextNull(); |
| 101 | 101 | return null; |
| 102 | 102 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function read(JsonReadable $reader): ?float |
| 30 | 30 | { |
| 31 | - if ($reader->peek() === JsonToken::NULL) { |
|
| 31 | + if ($reader->peek() === JsonToken::null) { |
|
| 32 | 32 | $reader->nextNull(); |
| 33 | 33 | return null; |
| 34 | 34 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | */ |
| 55 | 55 | public function read(JsonReadable $reader): ?DateTime |
| 56 | 56 | { |
| 57 | - if ($reader->peek() === JsonToken::NULL) { |
|
| 57 | + if ($reader->peek() === JsonToken::null) { |
|
| 58 | 58 | $reader->nextNull(); |
| 59 | 59 | return null; |
| 60 | 60 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function read(JsonReadable $reader): ?string |
| 30 | 30 | { |
| 31 | - if ($reader->peek() === JsonToken::NULL) { |
|
| 31 | + if ($reader->peek() === JsonToken::null) { |
|
| 32 | 32 | $reader->nextNull(); |
| 33 | 33 | return null; |
| 34 | 34 | } |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | */ |
| 167 | 167 | public function nextNull(): void |
| 168 | 168 | { |
| 169 | - $this->expect(JsonToken::NULL); |
|
| 169 | + $this->expect(JsonToken::null); |
|
| 170 | 170 | |
| 171 | 171 | $this->pop(); |
| 172 | 172 | |