Skip to content

Commit

Permalink
Merge pull request #290 from ergebnis/feature/switch-continue-to-break
Browse files Browse the repository at this point in the history
Enhancement: Enable switch_continue_to_break fixer
  • Loading branch information
ergebnis-bot committed Dec 8, 2020
2 parents 420f34c + bdf8421 commit 011a4c7
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ For a full diff see [`2.6.1...main`][2.6.1...main].
* Enabled and configured `phpdoc_tag_casing` fixer ([#287]), by [@localheinz]
* Enabled `regular_callable_call` fixer ([#288]), by [@localheinz]
* Enabled and configured `single_space_after_construct` fixer ([#289]), by [@localheinz]
* Enabled `switch_continue_to_break` fixer ([#290]), by [@localheinz]

## [`2.6.1`][2.6.1]

Expand Down Expand Up @@ -247,6 +248,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#287]: https://github.com/ergebnis/php-cs-fixer-config/pull/287
[#288]: https://github.com/ergebnis/php-cs-fixer-config/pull/288
[#289]: https://github.com/ergebnis/php-cs-fixer-config/pull/289
[#290]: https://github.com/ergebnis/php-cs-fixer-config/pull/290

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ final class Php71 extends AbstractRuleSet
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'switch_continue_to_break' => false,
'switch_continue_to_break' => true,
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => false,
'ternary_to_null_coalescing' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ final class Php73 extends AbstractRuleSet
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'switch_continue_to_break' => false,
'switch_continue_to_break' => true,
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => false,
'ternary_to_null_coalescing' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ final class Php74 extends AbstractRuleSet
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'switch_continue_to_break' => false,
'switch_continue_to_break' => true,
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => false,
'ternary_to_null_coalescing' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php71Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ final class Php71Test extends AbstractRuleSetTestCase
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'switch_continue_to_break' => false,
'switch_continue_to_break' => true,
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => false,
'ternary_to_null_coalescing' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ final class Php73Test extends AbstractRuleSetTestCase
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'switch_continue_to_break' => false,
'switch_continue_to_break' => true,
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => false,
'ternary_to_null_coalescing' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ final class Php74Test extends AbstractRuleSetTestCase
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'switch_continue_to_break' => false,
'switch_continue_to_break' => true,
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => false,
'ternary_to_null_coalescing' => true,
Expand Down

0 comments on commit 011a4c7

Please sign in to comment.