Skip to content

Commit

Permalink
Enhancement: Configure trailing_comma_in_multiline fixer to add trail…
Browse files Browse the repository at this point in the history
…ing commas for parameters
  • Loading branch information
localheinz committed May 4, 2021
1 parent a99fb47 commit 8a7352b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ For a full diff see [`2.13.1...main`][2.13.1...main].

* Updated `friendsofphp/php-cs-fixer` ([#400]), by [@dependabot]
* Configured `trailing_comma_in_multiline` fixer to add trailing commas for arguments in `Php73`, `Php74`, and `Php80` rule sets ([#401]), by [@localheinz]
* Configured `trailing_comma_in_multiline` fixer to add trailing commas for parameters in `Php80` rule set ([#404]), by [@localheinz]

## [`2.13.1`][2.13.1]

Expand Down Expand Up @@ -397,6 +398,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#392]: /~https://github.com/ergebnis/php-cs-fixer-config/pull/392
[#400]: /~https://github.com/ergebnis/php-cs-fixer-config/pull/400
[#401]: /~https://github.com/ergebnis/php-cs-fixer-config/pull/401
[#404]: /~https://github.com/ergebnis/php-cs-fixer-config/pull/404

[@dependabot]: /~https://github.com/apps/dependabot
[@linuxjuggler]: /~https://github.com/linuxjuggler
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'elements' => [
'arguments',
'arrays',
'parameters',
],
],
'trim_array_spaces' => true,
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'elements' => [
'arguments',
'arrays',
'parameters',
],
],
'trim_array_spaces' => true,
Expand Down

0 comments on commit 8a7352b

Please sign in to comment.