Skip to content

Commit 61b6160

Browse files
Add test
1 parent 97685b2 commit 61b6160

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: tests/PHPStan/Analyser/nsrt/array-is-list-unset.php

+3
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ function () {
2323
$a[] = 4;
2424
assertType('array{0: 1, 1: 2, 3: 4}', $a);
2525
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));
2629
};

0 commit comments

Comments
 (0)