Skip to content

Commit b459b95

Browse files
committed
fixup! Put the keys of a list in ascending order and require the ones below a required key
1 parent a32938e commit b459b95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/PHPStan/Analyser/nsrt/bug-14177.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function testUnsetNonConstant(array $a, array $b, array $c, int $int): vo
184184
unset($c[$int]);
185185
assertType('false', array_is_list($a));
186186
assertType('bool', array_is_list($b));
187-
// the required key 3 makes the keys below it required in a list too
187+
// in a list, the required key 3 implies the keys 1 and 2, so unsetting either leaves no list
188188
assertType('false', array_is_list($c));
189189
}
190190

0 commit comments

Comments
 (0)