diff --git a/CHANGELOG.md b/CHANGELOG.md index 3daff7a9..bdfe7eda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] @@ -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 diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 7317aff4..5eb2d816 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -341,6 +341,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'return', 'switch_case', 'yield', + 'yield_from', ], ], 'no_unneeded_curly_braces' => [ diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index 73017fce..9deb7395 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -341,6 +341,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'return', 'switch_case', 'yield', + 'yield_from', ], ], 'no_unneeded_curly_braces' => [ diff --git a/src/RuleSet/Php81.php b/src/RuleSet/Php81.php index a2508677..23478efd 100644 --- a/src/RuleSet/Php81.php +++ b/src/RuleSet/Php81.php @@ -341,6 +341,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet 'return', 'switch_case', 'yield', + 'yield_from', ], ], 'no_unneeded_curly_braces' => [ diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 4cb11437..a017992b 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -347,6 +347,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'return', 'switch_case', 'yield', + 'yield_from', ], ], 'no_unneeded_curly_braces' => [ diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index 9d7d0de9..1eb3236e 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -347,6 +347,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'return', 'switch_case', 'yield', + 'yield_from', ], ], 'no_unneeded_curly_braces' => [ diff --git a/test/Unit/RuleSet/Php81Test.php b/test/Unit/RuleSet/Php81Test.php index 4839b744..0f371771 100644 --- a/test/Unit/RuleSet/Php81Test.php +++ b/test/Unit/RuleSet/Php81Test.php @@ -347,6 +347,7 @@ final class Php81Test extends ExplicitRuleSetTestCase 'return', 'switch_case', 'yield', + 'yield_from', ], ], 'no_unneeded_curly_braces' => [