Skip to content

Commit

Permalink
Remove no longer needed FUNC_ARGS_TRAILING_COMMA attribute usage mark…
Browse files Browse the repository at this point in the history
…er on downgrade rules (#250)
  • Loading branch information
samsonasik authored Nov 23, 2024
1 parent 08b98b3 commit ecd33d6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public function refactor(Node $node): ?Node
}

// remove comma
$lastArg->setAttribute(AttributeKey::FUNC_ARGS_TRAILING_COMMA, false);
$node->setAttribute(AttributeKey::ORIGINAL_NODE, null);

return $node;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public function refactor(Node $node): ?Node
}

// remove comma
$last->setAttribute(AttributeKey::FUNC_ARGS_TRAILING_COMMA, false);
$node->setAttribute(AttributeKey::ORIGINAL_NODE, null);

return $node;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ private function cleanTrailingComma(Closure|ClassMethod|Function_ $node, array $
}

$node->setAttribute(AttributeKey::ORIGINAL_NODE, null);
$last->setAttribute(AttributeKey::FUNC_ARGS_TRAILING_COMMA, false);

return $node;
}
Expand Down

0 comments on commit ecd33d6

Please sign in to comment.