We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd21346 commit f79cfbbCopy full SHA for f79cfbb
1 file changed
tests/PHPStan/Analyser/nsrt/non-empty-string-str-containing-fns.php
@@ -103,12 +103,27 @@ public function variants(string $s) {
103
}
104
assertType('string', $s);
105
106
+ if (strpos($s, '0') === 0) {
107
+ assertType('string', $s); // could be non-empty-string
108
+ } else {
109
+ assertType('string', $s);
110
+ }
111
112
+
113
+ if (strpos($s, '0') === 5) {
114
+ assertType('non-empty-string', $s); // could be non-falsy-string
115
116
117
118
119
120
if (strpos($s, ':') === 5) {
121
assertType('non-falsy-string', $s);
122
} else {
123
124
125
126
127
if (strpos($s, ':') !== 5) {
128
129
0 commit comments