mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Use $stmt->args directly instead of creating new VariadicPlaceholder
This commit is contained in:
parent
1f3a37ff02
commit
d5519fc53a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user