Skip to content

Commit ae2767a

Browse files
authored
Merge pull request #922 from ergebnis/feature/class-attributes-separation
Enhancement: Configure `case` option of `elements` option of `class_attributes_separation` fixer
2 parents 3d3febb + 5e49e08 commit ae2767a

File tree

7 files changed

+11
-0
lines changed

7 files changed

+11
-0
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
For a full diff see [`6.8.1...main`][6.8.1...main].
1010

11+
### Changed
12+
13+
- Configured `case` option of `elements` option of `class_attributes_separation` fixer ([#922]), by [@localheinz]
14+
1115
## [`6.8.1`][6.8.1]
1216

1317
For a full diff see [`6.8.0...6.8.1`][6.8.0...6.8.1].
@@ -1325,6 +1329,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
13251329
[#914]: https://github.com/ergebnis/php-cs-fixer-config/pull/914
13261330
[#917]: https://github.com/ergebnis/php-cs-fixer-config/pull/917
13271331
[#918]: https://github.com/ergebnis/php-cs-fixer-config/pull/918
1332+
[#922]: https://github.com/ergebnis/php-cs-fixer-config/pull/922
13281333

13291334
[@dependabot]: https://github.com/apps/dependabot
13301335
[@linuxjuggler]: https://github.com/linuxjuggler

src/RuleSet/Php81.php

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public static function create(): RuleSet
110110
],
111111
'class_attributes_separation' => [
112112
'elements' => [
113+
'case' => 'only_if_meta',
113114
'const' => 'only_if_meta',
114115
'method' => 'one',
115116
'property' => 'only_if_meta',

src/RuleSet/Php82.php

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public static function create(): RuleSet
110110
],
111111
'class_attributes_separation' => [
112112
'elements' => [
113+
'case' => 'only_if_meta',
113114
'const' => 'only_if_meta',
114115
'method' => 'one',
115116
'property' => 'only_if_meta',

src/RuleSet/Php83.php

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public static function create(): RuleSet
110110
],
111111
'class_attributes_separation' => [
112112
'elements' => [
113+
'case' => 'only_if_meta',
113114
'const' => 'only_if_meta',
114115
'method' => 'one',
115116
'property' => 'only_if_meta',

test/Unit/RuleSet/Php81Test.php

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ protected function expectedRules(): Rules
132132
],
133133
'class_attributes_separation' => [
134134
'elements' => [
135+
'case' => 'only_if_meta',
135136
'const' => 'only_if_meta',
136137
'method' => 'one',
137138
'property' => 'only_if_meta',

test/Unit/RuleSet/Php82Test.php

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ protected function expectedRules(): Rules
132132
],
133133
'class_attributes_separation' => [
134134
'elements' => [
135+
'case' => 'only_if_meta',
135136
'const' => 'only_if_meta',
136137
'method' => 'one',
137138
'property' => 'only_if_meta',

test/Unit/RuleSet/Php83Test.php

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ protected function expectedRules(): Rules
132132
],
133133
'class_attributes_separation' => [
134134
'elements' => [
135+
'case' => 'only_if_meta',
135136
'const' => 'only_if_meta',
136137
'method' => 'one',
137138
'property' => 'only_if_meta',

0 commit comments

Comments
 (0)