Skip to content

Commit

Permalink
Merge pull request #579 from ergebnis/feature/no-trailing-comma-in-si…
Browse files Browse the repository at this point in the history
…ngleline-function-call

Enhancement: Enable `no_trailing_comma_in_singleline_function_call` fixer
  • Loading branch information
localheinz authored Mar 7, 2022
2 parents 74edb44 + 673cc29 commit caef33f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ For a full diff see [`4.1.0...main`][4.1.0...main].
### Changed

- Updated `friendsofphp/php-cs-fixer` ([#578]), by [@dependabot]
- Enabled `no_trailing_comma_in_singleline_function_call` fixer ([#579]), by [@localheinz]

## [`4.1.0`][4.1.0]

Expand Down Expand Up @@ -588,6 +589,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#566]: https://github.com/ergebnis/php-cs-fixer-config/pull/566
[#567]: https://github.com/ergebnis/php-cs-fixer-config/pull/567
[#578]: https://github.com/ergebnis/php-cs-fixer-config/pull/578
[#579]: https://github.com/ergebnis/php-cs-fixer-config/pull/579

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
],
'no_trailing_comma_in_list_call' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_comma_in_singleline_function_call' => false,
'no_trailing_comma_in_singleline_function_call' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_whitespace_in_string' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
],
'no_trailing_comma_in_list_call' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_comma_in_singleline_function_call' => false,
'no_trailing_comma_in_singleline_function_call' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_whitespace_in_string' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
],
'no_trailing_comma_in_list_call' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_comma_in_singleline_function_call' => false,
'no_trailing_comma_in_singleline_function_call' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_whitespace_in_string' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
],
'no_trailing_comma_in_list_call' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_comma_in_singleline_function_call' => false,
'no_trailing_comma_in_singleline_function_call' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_whitespace_in_string' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
],
'no_trailing_comma_in_list_call' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_comma_in_singleline_function_call' => false,
'no_trailing_comma_in_singleline_function_call' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_whitespace_in_string' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ final class Php81Test extends ExplicitRuleSetTestCase
],
'no_trailing_comma_in_list_call' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_comma_in_singleline_function_call' => false,
'no_trailing_comma_in_singleline_function_call' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_whitespace_in_string' => true,
Expand Down

0 comments on commit caef33f

Please sign in to comment.