We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e8ce45 commit e31dd72Copy full SHA for e31dd72
tests/PHPStan/Analyser/nsrt/bug-5051.php
@@ -62,6 +62,39 @@ public function testWithBooleans($data): void
62
assertType('1|2|3|10', $data);
63
assertType('bool', $update);
64
}
65
+
66
+ if ($data === 1) {
67
+ assertType('bool', $update);
68
+ assertType('bool', $foo);
69
+ } else {
70
71
72
+ }
73
74
+ if ($data === 2) {
75
76
77
78
79
80
81
82
+ if ($data === 3) {
83
84
85
86
87
88
89
90
+ if ($data === 1 || $data === 2) {
91
92
93
94
95
96
97
98
99
100
public function testWithDifferentVariableNames(?object $data): void
0 commit comments