diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b7c3687..9fe8efc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ For a full diff see [`4.4.0...main`][4.4.0...main]. - Enabled and configured `curly_braces_position` fixer ([#622]), by [@localheinz] - 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] ## [`4.4.0`][4.4.0] @@ -647,6 +648,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#622]: https://github.com/ergebnis/php-cs-fixer-config/pull/622 [#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 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 99b27263..974071e5 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -350,6 +350,8 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'clone', 'continue', 'echo_print', + 'negative_instanceof', + 'others', 'return', 'switch_case', 'yield', diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index aaae14cc..32064eb6 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -350,6 +350,8 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'clone', 'continue', 'echo_print', + 'negative_instanceof', + 'others', 'return', 'switch_case', 'yield', diff --git a/src/RuleSet/Php81.php b/src/RuleSet/Php81.php index c929e30b..70faaa18 100644 --- a/src/RuleSet/Php81.php +++ b/src/RuleSet/Php81.php @@ -350,6 +350,8 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet 'clone', 'continue', 'echo_print', + 'negative_instanceof', + 'others', 'return', 'switch_case', 'yield', diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 032167ce..69afccd0 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -356,6 +356,8 @@ final class Php74Test extends ExplicitRuleSetTestCase 'clone', 'continue', 'echo_print', + 'negative_instanceof', + 'others', 'return', 'switch_case', 'yield', diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index 14a04cd5..b5681020 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -356,6 +356,8 @@ final class Php80Test extends ExplicitRuleSetTestCase 'clone', 'continue', 'echo_print', + 'negative_instanceof', + 'others', 'return', 'switch_case', 'yield', diff --git a/test/Unit/RuleSet/Php81Test.php b/test/Unit/RuleSet/Php81Test.php index db8143dc..e2b6e92f 100644 --- a/test/Unit/RuleSet/Php81Test.php +++ b/test/Unit/RuleSet/Php81Test.php @@ -356,6 +356,8 @@ final class Php81Test extends ExplicitRuleSetTestCase 'clone', 'continue', 'echo_print', + 'negative_instanceof', + 'others', 'return', 'switch_case', 'yield',