Skip to content

Commit

Permalink
chore: fix coding standards
Browse files Browse the repository at this point in the history
Signed-off-by: azjezz <azjezz@protonmail.com>
  • Loading branch information
azjezz committed Feb 6, 2022
1 parent dff80ef commit 0fe10f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/EventHandler/Iter/Count/FunctionReturnTypeProvider.php
Expand Up @@ -68,8 +68,10 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev
return Type::getInt();
}

if (($array_argument_type instanceof Type\Atomic\TArray) && $array_argument_type->type_params[0]->isNever() && $array_argument_type->type_params[1]->isNever()) {
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()) {
return Type::getInt(false, 0);
}
}

return Type::getInt();
Expand Down

0 comments on commit 0fe10f0

Please sign in to comment.