Skip to content

Commit 731fb7c

Browse files
Add test
1 parent 8fb3b07 commit 731fb7c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/PHPStan/Analyser/nsrt/bug-9734.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ public function doFoo3(array $a): void
4444
}
4545
}
4646

47+
/**
48+
* @param mixed $a
49+
* @return void
50+
*/
51+
public function doFoo4($a): void
52+
{
53+
if (array_is_list($a)) {
54+
assertType('list', $a);
55+
} else {
56+
assertType('mixed~list', $a);
57+
}
58+
}
59+
4760
}
4861

4962
class Bar

0 commit comments

Comments
 (0)