Skip to content

Commit 6dcc8c1

Browse files
authored
Apply ArrayKeysFunctionDynamicReturnTypeExtension for more than 1 argument
1 parent f361e35 commit 6dcc8c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Php/ArrayKeysFunctionDynamicReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function isFunctionSupported(FunctionReflection $functionReflection): boo
2727

2828
public function getTypeFromFunctionCall(FunctionReflection $functionReflection, FuncCall $functionCall, Scope $scope): ?Type
2929
{
30-
if (count($functionCall->getArgs()) !== 1) {
30+
if (!isset($functionCall->getArgs()[0])) {
3131
return null;
3232
}
3333

0 commit comments

Comments
 (0)