From 0fe10f0af96fb4cd0b7abfb043267a3e0f47956d 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 @@ final class FunctionReturnTypeProvider implements FunctionReturnTypeProviderInte 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();