@@ -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 | } |