We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2e991f commit 814ec1cCopy full SHA for 814ec1c
tests/PHPStan/Analyser/nsrt/bug-13747.php
@@ -15,6 +15,7 @@ public function sayHello($list): void
15
16
if (count($list) > 2) {
17
assertType('non-empty-list<int>&hasOffsetValue(1, int)&hasOffsetValue(2, int)', $list);
18
+ assertType('int<3, max>', count($list));
19
} else {
20
assertType('non-empty-list<int>', $list);
21
}
0 commit comments