Skip to content

Commit 549f620

Browse files
committed
fix phsptan
1 parent 2ae0b28 commit 549f620

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,8 @@ public function refactor(Node $node): ?Node
102102
break;
103103
}
104104

105-
if (trim($tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration]->text) === ',') {
106-
$tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration]->text = '';
107-
break;
108-
}
109-
110-
++$iteration;
105+
$tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration]->text = '';
106+
break;
111107
}
112108

113109
return $node;

0 commit comments

Comments
 (0)