@@ -23,6 +23,6 @@ |
||
23 | 23 | const STRING = 'string'; |
24 | 24 | const BOOLEAN = 'boolean'; |
25 | 25 | const NUMBER = 'number'; |
26 | - const NULL = 'null'; |
|
26 | + const null = 'null'; |
|
27 | 27 | const NAME = 'name'; |
28 | 28 | } |
@@ -166,7 +166,7 @@ |
||
166 | 166 | $token = JsonToken::BEGIN_ARRAY; |
167 | 167 | break; |
168 | 168 | case JsonNull::class: |
169 | - $token = JsonToken::NULL; |
|
169 | + $token = JsonToken::null; |
|
170 | 170 | break; |
171 | 171 | case JsonObject::class: |
172 | 172 | $token = JsonToken::BEGIN_OBJECT; |
@@ -160,7 +160,7 @@ |
||
160 | 160 | */ |
161 | 161 | public function nextNull() |
162 | 162 | { |
163 | - $this->expect(JsonToken::NULL); |
|
163 | + $this->expect(JsonToken::null); |
|
164 | 164 | |
165 | 165 | $this->pop(); |
166 | 166 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function read(JsonReadable $reader): ?float |
28 | 28 | { |
29 | - if ($reader->peek() === JsonToken::NULL) { |
|
29 | + if ($reader->peek() === JsonToken::null) { |
|
30 | 30 | return $reader->nextNull(); |
31 | 31 | } |
32 | 32 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function read(JsonReadable $reader): ?int |
28 | 28 | { |
29 | - if ($reader->peek() === JsonToken::NULL) { |
|
29 | + if ($reader->peek() === JsonToken::null) { |
|
30 | 30 | return $reader->nextNull(); |
31 | 31 | } |
32 | 32 |
@@ -56,7 +56,7 @@ discard block |
||
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 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | // If there is a nested object, continue deserializing to an array, |
83 | 83 | // otherwise guess the type using the wildcard |
84 | 84 | $type = $reader->peek() === JsonToken::BEGIN_OBJECT |
85 | - ? new TypeToken(TypeToken::ARRAY) |
|
85 | + ? new TypeToken(TypeToken::array) |
|
86 | 86 | : new TypeToken(TypeToken::WILDCARD); |
87 | 87 | |
88 | 88 | $adapter = $this->typeAdapterProvider->getAdapter($type); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function read(JsonReadable $reader): ?bool |
28 | 28 | { |
29 | - if ($reader->peek() === JsonToken::NULL) { |
|
29 | + if ($reader->peek() === JsonToken::null) { |
|
30 | 30 | return $reader->nextNull(); |
31 | 31 | } |
32 | 32 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function read(JsonReadable $reader): ?string |
28 | 28 | { |
29 | - if ($reader->peek() === JsonToken::NULL) { |
|
29 | + if ($reader->peek() === JsonToken::null) { |
|
30 | 30 | return $reader->nextNull(); |
31 | 31 | } |
32 | 32 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | public function read(JsonReadable $reader): ?DateTime |
52 | 52 | { |
53 | - if ($reader->peek() === JsonToken::NULL) { |
|
53 | + if ($reader->peek() === JsonToken::null) { |
|
54 | 54 | return $reader->nextNull(); |
55 | 55 | } |
56 | 56 |