Skip to content

Commit

Permalink
[DowngradePhp73] Fix complex next arg on DowngradeTrailingCommasInFun…
Browse files Browse the repository at this point in the history
…ctionCallsRector
  • Loading branch information
samsonasik committed Dec 12, 2024
1 parent 923461f commit 2ae0b28
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function refactor(Node $node): ?Node

while (isset($tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration])) {
if (trim($tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration]->text) === '') {
++$iteration;
continue;
}

Expand Down

0 comments on commit 2ae0b28

Please sign in to comment.