Skip to content

Commit

Permalink
fix phsptan
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 12, 2024
1 parent 2ae0b28 commit 549f620
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,8 @@ public function refactor(Node $node): ?Node
break;
}

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

++$iteration;
$tokens[$args[$lastArgKey]->getEndTokenPos() + $iteration]->text = '';
break;
}

return $node;
Expand Down

0 comments on commit 549f620

Please sign in to comment.