Completed
Push — master ( 624ed6...cb11f6 )
by Nate
03:42
created
src/Internal/TypeAdapter/DateTimeTypeAdapter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.