Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Configure ordered_class_elements fixer to order more elements #584

Merged
merged 1 commit into from
Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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