We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fc7fd6 commit 3664373Copy full SHA for 3664373
tests/PHPStan/Analyser/nsrt/bug-8864.php
@@ -15,7 +15,6 @@ function test(array $a): void
15
assertType('array{0: 1, 1?: 2}', $a);
16
}
17
18
- // TODO: value type of optional key should not be narrowed to *NEVER*
19
if (!in_array(2, $a, true)) {
20
assertType('array{0: 1, 1?: *NEVER*}', $a);
21
0 commit comments