From 6dcc8c1ba51968ddfc00eebf13d77929b18f9792 Mon Sep 17 00:00:00 2001 From: Manuel Huber Date: Mon, 28 Oct 2024 14:51:19 +0100 Subject: [PATCH] Apply ArrayKeysFunctionDynamicReturnTypeExtension for more than 1 argument --- src/Type/Php/ArrayKeysFunctionDynamicReturnTypeExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Type/Php/ArrayKeysFunctionDynamicReturnTypeExtension.php b/src/Type/Php/ArrayKeysFunctionDynamicReturnTypeExtension.php index 74a2903ea5..398113ca72 100644 --- a/src/Type/Php/ArrayKeysFunctionDynamicReturnTypeExtension.php +++ b/src/Type/Php/ArrayKeysFunctionDynamicReturnTypeExtension.php @@ -27,7 +27,7 @@ public function isFunctionSupported(FunctionReflection $functionReflection): boo public function getTypeFromFunctionCall(FunctionReflection $functionReflection, FuncCall $functionCall, Scope $scope): ?Type { - if (count($functionCall->getArgs()) !== 1) { + if (!isset($functionCall->getArgs()[0])) { return null; }