@@ -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 | } |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | |
| 188 | 188 | $writer->beginObject(); |
| 189 | 189 | |
| 190 | - $virtualProperty = $this->classMetadata->getAnnotation(VirtualProperty::class) ; |
|
| 190 | + $virtualProperty = $this->classMetadata->getAnnotation(VirtualProperty::class); |
|
| 191 | 191 | if ($virtualProperty !== null) { |
| 192 | 192 | $writer->name($virtualProperty->getValue()); |
| 193 | 193 | $writer->beginObject(); |
@@ -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 | } |
@@ -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 | |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * Read the next value, convert it to its type and return it |
| 51 | 51 | * |
| 52 | 52 | * @param JsonReadable $reader |
| 53 | - * @return DateTimeInterface|null |
|
| 53 | + * @return null|DateTime |
|
| 54 | 54 | * @throws \Tebru\Gson\Exception\JsonSyntaxException If the DateTime could not be created from format |
| 55 | 55 | */ |
| 56 | 56 | public function read(JsonReadable $reader): ?DateTimeInterface |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | public function read(JsonReadable $reader): ?DateTimeInterface |
| 57 | 57 | { |
| 58 | - if ($reader->peek() === JsonToken::NULL) { |
|
| 58 | + if ($reader->peek() === JsonToken::null) { |
|
| 59 | 59 | $reader->nextNull(); |
| 60 | 60 | return null; |
| 61 | 61 | } |
@@ -376,7 +376,7 @@ |
||
| 376 | 376 | */ |
| 377 | 377 | public function setCacheDir(string $cacheDir): GsonBuilder |
| 378 | 378 | { |
| 379 | - $this->cacheDir = $cacheDir.'/gson'; |
|
| 379 | + $this->cacheDir = $cacheDir . '/gson'; |
|
| 380 | 380 | |
| 381 | 381 | return $this; |
| 382 | 382 | } |