1
0
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:
Aaron Piotrowski 2021-12-09 15:51:48 -06:00
parent 1f3a37ff02
commit d5519fc53a
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -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();