Skip to content

Commit

Permalink
Merge pull request #480 from ergebnis/feature/class-attributes-separa…
Browse files Browse the repository at this point in the history
…tion

Enhancement: Configure `class_attributes_separation` fixer to use `none` option for element `trait_import`
  • Loading branch information
localheinz authored Aug 30, 2021
2 parents e3a7634 + 82607bc commit bbfed88
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ For a full diff see [`3.0.2...main`][3.0.2...main].
* Enabled and configured `empty_loop_body` fixer ([#477]), by [@localheinz]
* Enabled and configured `types_spaces` fixer ([#478]), by [@localheinz]
* Configured `class_attributes_separation` fixer to use newly added `only_if_meta` option for elements `const` and `property` ([#479]), by [@localheinz]
* Configured `class_attributes_separation` fixer to use `none` option for element `trait_import` ([#480]), by [@localheinz]

## [`3.0.2`][3.0.2]

Expand Down Expand Up @@ -474,6 +475,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#477]: https://github.com/ergebnis/php-cs-fixer-config/pull/477
[#478]: https://github.com/ergebnis/php-cs-fixer-config/pull/478
[#479]: https://github.com/ergebnis/php-cs-fixer-config/pull/479
[#480]: https://github.com/ergebnis/php-cs-fixer-config/pull/490

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
'trait_import' => 'none',
],
],
'class_definition' => [
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
'trait_import' => 'none',
],
],
'class_definition' => [
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
'trait_import' => 'none',
],
],
'class_definition' => [
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ final class Php73Test extends ExplicitRuleSetTestCase
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
'trait_import' => 'none',
],
],
'class_definition' => [
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
'trait_import' => 'none',
],
],
'class_definition' => [
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'const' => 'only_if_meta',
'method' => 'one',
'property' => 'only_if_meta',
'trait_import' => 'none',
],
],
'class_definition' => [
Expand Down

0 comments on commit bbfed88

Please sign in to comment.