Passed
Pull Request — master (#26)
by Nate
07:26
created
src/Internal/JsonElementReader.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             $this->stackTypes[$this->stackSize++] = JsonToken::BOOLEAN;
64 64
         } else {
65 65
             $this->stack[$this->stackSize] = null;
66
-            $this->stackTypes[$this->stackSize++] = JsonToken::NULL;
66
+            $this->stackTypes[$this->stackSize++] = JsonToken::null;
67 67
         }
68 68
     }
69 69
 
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/ArrayTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     public function read(JsonReadable $reader): ?array
77 77
     {
78 78
         $token = $reader->peek();
79
-        if ($token === JsonToken::NULL) {
79
+        if ($token === JsonToken::null) {
80 80
             $reader->nextNull();
81 81
             return null;
82 82
         }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/ReflectionTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
             return null;
143 143
         }
144 144
 
145
-        if ($reader->peek() === JsonToken::NULL) {
145
+        if ($reader->peek() === JsonToken::null) {
146 146
             $reader->nextNull();
147 147
             return null;
148 148
         }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/WildcardTypeAdapter.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@
 block discarded – undo
64 64
             case JsonToken::NUMBER:
65 65
                 $type = TypeToken::create(TypeToken::FLOAT);
66 66
                 break;
67
-            case JsonToken::NULL:
68
-                $type = TypeToken::create(TypeToken::NULL);
67
+            case JsonToken::null:
68
+                $type = TypeToken::create(TypeToken::null);
69 69
                 break;
70 70
             default:
71 71
                 throw new JsonSyntaxException(
Please login to merge, or discard this patch.
src/Internal/JsonReader.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,8 +159,8 @@
 block discarded – undo
159 159
     {
160 160
         $this->pathIndices[$this->pathIndex]++;
161 161
 
162
-        if ($this->stackTypes[$this->stackSize - 1] !== JsonToken::NULL) {
163
-            $this->assertionFailed(JsonToken::NULL);
162
+        if ($this->stackTypes[$this->stackSize - 1] !== JsonToken::null) {
163
+            $this->assertionFailed(JsonToken::null);
164 164
         }
165 165
 
166 166
         $this->stackSize--;
Please login to merge, or discard this patch.
src/Internal/JsonDecodeReader.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
                 break;
77 77
             default:
78 78
                 $this->stack[$this->stackSize] = null;
79
-                $this->stackTypes[$this->stackSize++] = JsonToken::NULL;
79
+                $this->stackTypes[$this->stackSize++] = JsonToken::null;
80 80
         }
81 81
     }
82 82
 
Please login to merge, or discard this patch.