We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bff7fe5 commit 1ff1019Copy full SHA for 1ff1019
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