From 294e1cba8d6bd868f5e5291bde4848828b97968a Mon Sep 17 00:00:00 2001 From: azjezz Date: Sun, 6 Feb 2022 19:22:32 +0100 Subject: [PATCH] chore: fix coding standards Signed-off-by: azjezz --- src/EventHandler/Iter/Count/FunctionReturnTypeProvider.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/EventHandler/Iter/Count/FunctionReturnTypeProvider.php b/src/EventHandler/Iter/Count/FunctionReturnTypeProvider.php index e020de7..9ff45a4 100644 --- a/src/EventHandler/Iter/Count/FunctionReturnTypeProvider.php +++ b/src/EventHandler/Iter/Count/FunctionReturnTypeProvider.php @@ -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();