Skip to content

Commit

Permalink
Merge pull request #584 from ergebnis/feature/ordered-class-elements
Browse files Browse the repository at this point in the history
Enhancement: Configure `ordered_class_elements` fixer to order more elements
  • Loading branch information
localheinz authored Mar 8, 2022
2 parents c20602b + 3a2aa50 commit a2ffb35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ For a full diff see [`4.2.0...main`][4.2.0...main].

- 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]
- Configured `ordered_class_elements` fixer to order more elements ([#584]), by [@localheinz]

## [`4.2.0`][4.2.0]

Expand Down Expand Up @@ -605,6 +606,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#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
[#584]: https://github.com/ergebnis/php-cs-fixer-config/pull/584

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'ordered_class_elements' => [
'order' => [
'use_trait',
'case',
'constant_public',
'constant_protected',
'constant_private',
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 @@ -386,6 +386,7 @@ final class Php81Test extends ExplicitRuleSetTestCase
'ordered_class_elements' => [
'order' => [
'use_trait',
'case',
'constant_public',
'constant_protected',
'constant_private',
Expand Down

0 comments on commit a2ffb35

Please sign in to comment.