Skip to content

Commit

Permalink
Use $stmt->args directly instead of creating new VariadicPlaceholder
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 9, 2021
1 parent 1f3a37f commit d5519fc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -837,7 +837,7 @@ private static function analyzeInvokeCall(
$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();
Expand Down

0 comments on commit d5519fc

Please sign in to comment.