Skip to content

Commit

Permalink
Enhancement: Configure additional statements for no_unneeded_control_…
Browse files Browse the repository at this point in the history
…parentheses fixer
  • Loading branch information
localheinz committed Jul 11, 2022
1 parent 712f4be commit 5236fc0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'clone',
'continue',
'echo_print',
'negative_instanceof',
'others',
'return',
'switch_case',
'yield',
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'clone',
'continue',
'echo_print',
'negative_instanceof',
'others',
'return',
'switch_case',
'yield',
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'clone',
'continue',
'echo_print',
'negative_instanceof',
'others',
'return',
'switch_case',
'yield',
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ final class Php74Test extends ExplicitRuleSetTestCase
'clone',
'continue',
'echo_print',
'negative_instanceof',
'others',
'return',
'switch_case',
'yield',
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ final class Php80Test extends ExplicitRuleSetTestCase
'clone',
'continue',
'echo_print',
'negative_instanceof',
'others',
'return',
'switch_case',
'yield',
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ final class Php81Test extends ExplicitRuleSetTestCase
'clone',
'continue',
'echo_print',
'negative_instanceof',
'others',
'return',
'switch_case',
'yield',
Expand Down

0 comments on commit 5236fc0

Please sign in to comment.