diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index c4963731..77353e9d 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -344,9 +344,13 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index ccfafdb8..b2ecf3b3 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -345,9 +345,13 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, diff --git a/src/RuleSet/Php81.php b/src/RuleSet/Php81.php index b6a28827..295c06f1 100644 --- a/src/RuleSet/Php81.php +++ b/src/RuleSet/Php81.php @@ -345,9 +345,13 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index ec5e0556..4010a5e5 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -350,9 +350,13 @@ final class Php74Test extends ExplicitRuleSetTestCase 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index 07a46bf2..5115ba97 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -351,9 +351,13 @@ final class Php80Test extends ExplicitRuleSetTestCase 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, diff --git a/test/Unit/RuleSet/Php81Test.php b/test/Unit/RuleSet/Php81Test.php index f92835dd..dbab1eac 100644 --- a/test/Unit/RuleSet/Php81Test.php +++ b/test/Unit/RuleSet/Php81Test.php @@ -351,9 +351,13 @@ final class Php81Test extends ExplicitRuleSetTestCase 'allow_unused_params' => false, 'remove_inheritdoc' => false, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_trailing_comma_in_singleline_function_call' => true, + 'no_trailing_comma_in_singleline' => [ + 'elements' => [ + 'arguments', + 'array', + 'array_destructuring', + ], + ], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true,