From d5519fc53a03e371467586fc95e0fb0559fbcb7d Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Thu, 9 Dec 2021 15:51:48 -0600 Subject: [PATCH] Use $stmt->args directly instead of creating new VariadicPlaceholder --- .../Statements/Expression/Call/FunctionCallAnalyzer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php index 4d4d1394f..6ff81fb90 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php @@ -837,7 +837,7 @@ class FunctionCallAnalyzer extends CallAnalyzer $fake_method_call = new VirtualMethodCall( $function_name, new VirtualIdentifier('__invoke', $function_name->getAttributes()), - $stmt->isFirstClassCallable() ? [new PhpParser\Node\VariadicPlaceholder()] : $stmt->getArgs() + $stmt->args ); $suppressed_issues = $statements_analyzer->getSuppressedIssues();