We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53eb552 commit c86721eCopy full SHA for c86721e
tests/PHPStan/Rules/Comparison/data/bug-13023.php
@@ -166,3 +166,25 @@ public function getRandom(): int
166
return $value * $value;
167
}
168
169
+
170
+class SomeClass11
171
+{
172
+ use MyTrait6;
173
+}
174
175
+trait MyTrait6
176
177
+ public function getBar(): array
178
+ {
179
+ return [];
180
+ }
181
182
+ public function getRandom(): int
183
184
+ if (!\is_int(count($this->getBar()))) {
185
+ return 1;
186
187
188
+ return 0;
189
190
0 commit comments