Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Configure trailing_comma_in_multiline fixer to include match in elements option #626

Merged
merged 1 commit into from
Jul 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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