diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c8e8dad..a30f609e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), For a full diff see [`6.8.1...main`][6.8.1...main]. +### Changes + +- Configured `case` option of `elements` option of `class_attributes_separation` fixer ([#922]), by [@localheinz] + ## [`6.8.1`][6.8.1] 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]. [#914]: https://github.com/ergebnis/php-cs-fixer-config/pull/914 [#917]: https://github.com/ergebnis/php-cs-fixer-config/pull/917 [#918]: https://github.com/ergebnis/php-cs-fixer-config/pull/918 +[#922]: https://github.com/ergebnis/php-cs-fixer-config/pull/922 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php81.php b/src/RuleSet/Php81.php index 28ed25e9..2510c38c 100644 --- a/src/RuleSet/Php81.php +++ b/src/RuleSet/Php81.php @@ -110,6 +110,7 @@ public static function create(): RuleSet ], 'class_attributes_separation' => [ 'elements' => [ + 'case' => 'only_if_meta', 'const' => 'only_if_meta', 'method' => 'one', 'property' => 'only_if_meta', diff --git a/src/RuleSet/Php82.php b/src/RuleSet/Php82.php index df5ec01d..e44bcfd1 100644 --- a/src/RuleSet/Php82.php +++ b/src/RuleSet/Php82.php @@ -110,6 +110,7 @@ public static function create(): RuleSet ], 'class_attributes_separation' => [ 'elements' => [ + 'case' => 'only_if_meta', 'const' => 'only_if_meta', 'method' => 'one', 'property' => 'only_if_meta', diff --git a/src/RuleSet/Php83.php b/src/RuleSet/Php83.php index 2a7a0fa5..37abb751 100644 --- a/src/RuleSet/Php83.php +++ b/src/RuleSet/Php83.php @@ -110,6 +110,7 @@ public static function create(): RuleSet ], 'class_attributes_separation' => [ 'elements' => [ + 'case' => 'only_if_meta', 'const' => 'only_if_meta', 'method' => 'one', 'property' => 'only_if_meta', diff --git a/test/Unit/RuleSet/Php81Test.php b/test/Unit/RuleSet/Php81Test.php index 9b5f16ae..405cd4d9 100644 --- a/test/Unit/RuleSet/Php81Test.php +++ b/test/Unit/RuleSet/Php81Test.php @@ -132,6 +132,7 @@ protected function expectedRules(): Rules ], 'class_attributes_separation' => [ 'elements' => [ + 'case' => 'only_if_meta', 'const' => 'only_if_meta', 'method' => 'one', 'property' => 'only_if_meta', diff --git a/test/Unit/RuleSet/Php82Test.php b/test/Unit/RuleSet/Php82Test.php index c57270bf..d5355e1c 100644 --- a/test/Unit/RuleSet/Php82Test.php +++ b/test/Unit/RuleSet/Php82Test.php @@ -132,6 +132,7 @@ protected function expectedRules(): Rules ], 'class_attributes_separation' => [ 'elements' => [ + 'case' => 'only_if_meta', 'const' => 'only_if_meta', 'method' => 'one', 'property' => 'only_if_meta', diff --git a/test/Unit/RuleSet/Php83Test.php b/test/Unit/RuleSet/Php83Test.php index 22175590..af72faed 100644 --- a/test/Unit/RuleSet/Php83Test.php +++ b/test/Unit/RuleSet/Php83Test.php @@ -132,6 +132,7 @@ protected function expectedRules(): Rules ], 'class_attributes_separation' => [ 'elements' => [ + 'case' => 'only_if_meta', 'const' => 'only_if_meta', 'method' => 'one', 'property' => 'only_if_meta',