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 815f317 commit fa3611fCopy full SHA for fa3611f
src/Analyser/TypeSpecifier.php
@@ -1067,7 +1067,6 @@ private function specifyTypesForCountFuncCall(
1067
if (
1068
!$isNormalCount->yes()
1069
|| (!$isConstantArray->yes() && !$isList->yes())
1070
- || $type->isIterableAtLeastOnce()->no() // array{} cannot be used for further narrowing
1071
|| !$oneOrMore->isSuperTypeOf($sizeType)->yes()
1072
) {
1073
return null;
0 commit comments