Skip to content

Commit

Permalink
Enhancement: Configure no_unneeded_control_parentheses fixer to inclu…
Browse files Browse the repository at this point in the history
…de additional statements
  • Loading branch information
localheinz committed Mar 8, 2022
1 parent 0b2c5ad commit ce54a24
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 [`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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 ce54a24

Please sign in to comment.