Skip to content

Commit ecd33d6

Browse files
authored
Remove no longer needed FUNC_ARGS_TRAILING_COMMA attribute usage marker on downgrade rules (#250)
1 parent 08b98b3 commit ecd33d6

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public function refactor(Node $node): ?Node
9191
}
9292

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

9796
return $node;

rules/DowngradePhp73/Rector/Unset_/DowngradeTrailingCommasInUnsetRector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public function refactor(Node $node): ?Node
6868
}
6969

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

7473
return $node;

rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ private function cleanTrailingComma(Closure|ClassMethod|Function_ $node, array $
123123
}
124124

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

128127
return $node;
129128
}

0 commit comments

Comments
 (0)