We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4085ef4 commit 4397f23Copy full SHA for 4397f23
1 file changed
tests/PHPStan/Analyser/nsrt/non-empty-string-str-containing-fns.php
@@ -110,6 +110,29 @@ public function variants(string $s) {
110
}
111
assertType('string', $s);
112
113
+ $oneOrZero = rand(0, 1);
114
+ if (strpos($s, '0') == $oneOrZero) { // 0|1|false
115
+ assertType('string', $s);
116
+ } else {
117
118
+ }
119
120
+
121
122
+ if (strpos($s, '0') === $oneOrZero) {
123
+ assertType('string', $s); // could be non-empty-string
124
125
126
127
128
129
+ if (strpos($s, '0') == 1) {
130
131
132
133
134
135
136
if (strpos($s, '0') === 0) {
137
assertType('string', $s); // could be non-empty-string
138
} else {
0 commit comments