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 arguments
  • Loading branch information
localheinz committed May 4, 2021
1 parent a392f1d commit c01bb75
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 0 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 [`2.13.1...main`][2.13.1...main].
### Changed

* 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]

## [`2.13.1`][2.13.1]

Expand Down Expand Up @@ -395,6 +396,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#354]: https://github.com/ergebnis/php-cs-fixer-config/pull/354
[#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

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
'trailing_comma_in_multiline' => [
'after_heredoc' => false,
'elements' => [
'arguments',
'arrays',
],
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'trailing_comma_in_multiline' => [
'after_heredoc' => false,
'elements' => [
'arguments',
'arrays',
],
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'trailing_comma_in_multiline' => [
'after_heredoc' => false,
'elements' => [
'arguments',
'arrays',
],
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,7 @@ final class Php73Test extends ExplicitRuleSetTestCase
'trailing_comma_in_multiline' => [
'after_heredoc' => false,
'elements' => [
'arguments',
'arrays',
],
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
'trailing_comma_in_multiline' => [
'after_heredoc' => false,
'elements' => [
'arguments',
'arrays',
],
],
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 @@ -1029,6 +1029,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'trailing_comma_in_multiline' => [
'after_heredoc' => false,
'elements' => [
'arguments',
'arrays',
],
],
Expand Down

0 comments on commit c01bb75

Please sign in to comment.