Skip to content

Commit 2ae0b28

Browse files
committed
[DowngradePhp73] Fix complex next arg on DowngradeTrailingCommasInFunctionCallsRector
1 parent 923461f commit 2ae0b28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public function refactor(Node $node): ?Node
9494

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

0 commit comments

Comments
 (0)