Skip to content

Commit

Permalink
Merge pull request #583 from ergebnis/feature/no-unneeded-control-par…
Browse files Browse the repository at this point in the history
…entheses

Enhancement: Configure `no_unneeded_control_parentheses` fixer to include additional statements
  • Loading branch information
localheinz committed Mar 8, 2022
2 parents 0b2c5ad + ce54a24 commit eee78a3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@ For a full diff see [`4.2.0...main`][4.2.0...main].
### Changed

- Configured `blank_line_before_statement` fixer to include additional statements ([#581]), by [@localheinz]
- Configured `no_unneeded_control_parentheses` fixer to include additional statements ([#583]), by [@localheinz]

## [`4.2.0`][4.2.0]

Expand Down Expand Up @@ -603,6 +604,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#579]: https://github.com/ergebnis/php-cs-fixer-config/pull/579
[#580]: https://github.com/ergebnis/php-cs-fixer-config/pull/580
[#581]: https://github.com/ergebnis/php-cs-fixer-config/pull/581
[#583]: https://github.com/ergebnis/php-cs-fixer-config/pull/583

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php74.php
Expand Up @@ -341,6 +341,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'return',
'switch_case',
'yield',
'yield_from',
],
],
'no_unneeded_curly_braces' => [
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php80.php
Expand Up @@ -341,6 +341,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'return',
'switch_case',
'yield',
'yield_from',
],
],
'no_unneeded_curly_braces' => [
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php81.php
Expand Up @@ -341,6 +341,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'return',
'switch_case',
'yield',
'yield_from',
],
],
'no_unneeded_curly_braces' => [
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php74Test.php
Expand Up @@ -347,6 +347,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
'return',
'switch_case',
'yield',
'yield_from',
],
],
'no_unneeded_curly_braces' => [
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php80Test.php
Expand Up @@ -347,6 +347,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'return',
'switch_case',
'yield',
'yield_from',
],
],
'no_unneeded_curly_braces' => [
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php81Test.php
Expand Up @@ -347,6 +347,7 @@ final class Php81Test extends ExplicitRuleSetTestCase
'return',
'switch_case',
'yield',
'yield_from',
],
],
'no_unneeded_curly_braces' => [
Expand Down

0 comments on commit eee78a3

Please sign in to comment.