You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -46,6 +46,10 @@ public function testRule(): void
46
46
'Offset \'dim\' on array(\'dim\' => 1, \'dim-null\' => 1|null, \'dim-null-offset\' => array(\'a\' => true|null), \'dim-empty\' => array()) in isset() always exists and is not nullable.',
47
47
67,
48
48
],
49
+
[
50
+
'Offset \'dim-null-not-set\' on array(\'dim\' => 1, \'dim-null\' => 1|null, \'dim-null-offset\' => array(\'a\' => true|null), \'dim-empty\' => array()) in isset() does not exist.',
51
+
73,
52
+
],
49
53
[
50
54
'Offset \'b\' on array() in isset() does not exist.',
51
55
79,
@@ -166,7 +170,7 @@ public function testVariableCertaintyInIsset(): void
166
170
116,
167
171
],
168
172
[
169
-
'Variable $variableInSecondCase in isset() always exists and is not nullable.',
173
+
'Variable $variableInSecondCase in isset() always exists and is always null.',
@@ -44,6 +44,10 @@ public function testCoalesceRule(): void
44
44
'Offset \'dim\' on array(\'dim\' => 1, \'dim-null\' => 1|null, \'dim-null-offset\' => array(\'a\' => true|null), \'dim-empty\' => array()) on left side of ?? always exists and is not nullable.',
45
45
67,
46
46
],
47
+
[
48
+
'Offset \'dim-null-not-set\' on array(\'dim\' => 1, \'dim-null\' => 1|null, \'dim-null-offset\' => array(\'a\' => true|null), \'dim-empty\' => array()) on left side of ?? does not exist.',
49
+
73,
50
+
],
47
51
[
48
52
'Offset \'b\' on array() on left side of ?? does not exist.',
49
53
79,
@@ -104,6 +108,14 @@ public function testCoalesceRule(): void
104
108
'Property ReflectionClass<object>::$name (class-string<object>) on left side of ?? is not nullable.',
105
109
136,
106
110
],
111
+
[
112
+
'Variable $foo on left side of ?? is never defined.',
113
+
141,
114
+
],
115
+
[
116
+
'Variable $bar on left side of ?? is never defined.',
117
+
143,
118
+
],
107
119
]);
108
120
}
109
121
@@ -138,6 +150,10 @@ public function testCoalesceAssignRule(): void
138
150
'Offset \'dim\' on array(\'dim\' => 1, \'dim-null\' => 1|null, \'dim-null-offset\' => array(\'a\' => true|null), \'dim-empty\' => array()) on left side of ??= always exists and is not nullable.',
139
151
67,
140
152
],
153
+
[
154
+
'Offset \'dim-null-not-set\' on array(\'dim\' => 1, \'dim-null\' => 0|1, \'dim-null-offset\' => array(\'a\' => true|null), \'dim-empty\' => array()) on left side of ??= does not exist.',
155
+
73,
156
+
],
141
157
[
142
158
'Offset \'b\' on array() on left side of ??= does not exist.',
0 commit comments