Skip to content

Commit 40d7179

Browse files
herndlmondrejmirtes
authored andcommitted
Remove count() narrowing handling of empty array
Is already covered by the adaption of #3895
1 parent 815f317 commit 40d7179

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Analyser/TypeSpecifier.php

-1
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,6 @@ private function specifyTypesForCountFuncCall(
10671067
if (
10681068
!$isNormalCount->yes()
10691069
|| (!$isConstantArray->yes() && !$isList->yes())
1070-
|| $type->isIterableAtLeastOnce()->no() // array{} cannot be used for further narrowing
10711070
|| !$oneOrMore->isSuperTypeOf($sizeType)->yes()
10721071
) {
10731072
return null;

0 commit comments

Comments
 (0)