We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97685b2 commit 61b6160Copy full SHA for 61b6160
tests/PHPStan/Analyser/nsrt/array-is-list-unset.php
@@ -23,4 +23,7 @@ function () {
23
$a[] = 4;
24
assertType('array{0: 1, 1: 2, 3: 4}', $a);
25
assertType('false', array_is_list($a));
26
+ unset($a[3]);
27
+ assertType('array{0: 1, 1: 2}', $a);
28
+ assertType('true', array_is_list($a));
29
};
0 commit comments