We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dce3fe8 commit 294e1cbCopy full SHA for 294e1cb
src/EventHandler/Iter/Count/FunctionReturnTypeProvider.php
@@ -68,8 +68,10 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev
68
return Type::getInt();
69
}
70
71
- if (($array_argument_type instanceof Type\Atomic\TArray) && $array_argument_type->type_params[0]->isNever() && $array_argument_type->type_params[1]->isNever()) {
72
- return Type::getInt(false, 0);
+ if ($array_argument_type instanceof Type\Atomic\TArray) {
+ if ($array_argument_type->type_params[0]->isNever() && $array_argument_type->type_params[1]->isNever()) {
73
+ return Type::getInt(false, 0);
74
+ }
75
76
77
0 commit comments