Skip to content

Commit

Permalink
Merge pull request #626 from ergebnis/feature/trailing-comma-in-multi…
Browse files Browse the repository at this point in the history
…line

Enhancement: Configure `trailing_comma_in_multiline` fixer to include `match` in `elements` option
  • Loading branch information
localheinz committed Jul 11, 2022
2 parents 79116c3 + 5c8680f commit e19a0b9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ For a full diff see [`4.4.0...main`][4.4.0...main].
- Enabled `no_useless_nullsafe_operator` fixer ([#623]), by [@localheinz]
- Enabled `statement_indentation` fixer ([#624]), by [@localheinz]
- Configured `no_unneeded_control_parentheses` fixer to include `negative_instanceof` and `others` in the `statements` option ([#625]), by [@localheinz]
- Configured `trailing_comma_in_multiline` fixer to include `match` in the `elements` option ([#626]), by [@localheinz]

## [`4.4.0`][4.4.0]

Expand Down Expand Up @@ -649,6 +650,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#623]: https://github.com/ergebnis/php-cs-fixer-config/pull/623
[#624]: https://github.com/ergebnis/php-cs-fixer-config/pull/624
[#625]: https://github.com/ergebnis/php-cs-fixer-config/pull/625
[#626]: https://github.com/ergebnis/php-cs-fixer-config/pull/626

[@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 @@ -726,6 +726,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'elements' => [
'arguments',
'arrays',
'match',
'parameters',
],
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'elements' => [
'arguments',
'arrays',
'match',
'parameters',
],
],
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 @@ -732,6 +732,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'elements' => [
'arguments',
'arrays',
'match',
'parameters',
],
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ final class Php81Test extends ExplicitRuleSetTestCase
'elements' => [
'arguments',
'arrays',
'match',
'parameters',
],
],
Expand Down

0 comments on commit e19a0b9

Please sign in to comment.