Skip to content

Commit

Permalink
Merge pull request #354 from ergebnis/fix/class-attributes-separation
Browse files Browse the repository at this point in the history
Fix: Do not use deprecated configuration for class_attributes_separation fixer
  • Loading branch information
ergebnis-bot committed Feb 2, 2021
2 parents fcf490d + 4cc768c commit 96388ea
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 28 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

For a full diff see [`2.13.0...main`][2.13.0...main].

### Fixed

* Stopped using deprecated configuration for `class_attributes_separation` fixer ([#354]), by [@localheinz]

## [`2.13.0`][2.13.0]

For a full diff see [`2.12.1...2.13.0`][2.12.1...2.13.0].
Expand Down Expand Up @@ -377,6 +381,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#348]: https://github.com/ergebnis/php-cs-fixer-config/pull/348
[#350]: https://github.com/ergebnis/php-cs-fixer-config/pull/350
[#352]: https://github.com/ergebnis/php-cs-fixer-config/pull/352
[#354]: https://github.com/ergebnis/php-cs-fixer-config/pull/354

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Laravel6.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ final class Laravel6 extends AbstractRuleSet
'cast_spaces' => true,
'class_attributes_separation' => [
'elements' => [
'method',
'method' => 'one',
],
],
'class_definition' => true,
Expand Down
4 changes: 2 additions & 2 deletions src/RuleSet/Php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet
],
'class_attributes_separation' => [
'elements' => [
'method',
'property',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => [
Expand Down
4 changes: 2 additions & 2 deletions src/RuleSet/Php72.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet
],
'class_attributes_separation' => [
'elements' => [
'method',
'property',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => [
Expand Down
4 changes: 2 additions & 2 deletions src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
],
'class_attributes_separation' => [
'elements' => [
'method',
'property',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => [
Expand Down
4 changes: 2 additions & 2 deletions src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
],
'class_attributes_separation' => [
'elements' => [
'method',
'property',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => [
Expand Down
4 changes: 2 additions & 2 deletions src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
],
'class_attributes_separation' => [
'elements' => [
'method',
'property',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => [
Expand Down
6 changes: 3 additions & 3 deletions src/RuleSet/PhpUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ final class PhpUnit extends AbstractRuleSet
'cast_spaces' => true,
'class_attributes_separation' => [
'elements' => [
'const',
'method',
'property',
'const' => 'one',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Laravel6Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ final class Laravel6Test extends AbstractRuleSetTestCase
'cast_spaces' => true,
'class_attributes_separation' => [
'elements' => [
'method',
'method' => 'one',
],
],
'class_definition' => true,
Expand Down
4 changes: 2 additions & 2 deletions test/Unit/RuleSet/Php71Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ final class Php71Test extends ExplicitRuleSetTestCase
],
'class_attributes_separation' => [
'elements' => [
'method',
'property',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => [
Expand Down
4 changes: 2 additions & 2 deletions test/Unit/RuleSet/Php72Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ final class Php72Test extends ExplicitRuleSetTestCase
],
'class_attributes_separation' => [
'elements' => [
'method',
'property',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => [
Expand Down
4 changes: 2 additions & 2 deletions test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ final class Php73Test extends ExplicitRuleSetTestCase
],
'class_attributes_separation' => [
'elements' => [
'method',
'property',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => [
Expand Down
4 changes: 2 additions & 2 deletions test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ final class Php74Test extends ExplicitRuleSetTestCase
],
'class_attributes_separation' => [
'elements' => [
'method',
'property',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => [
Expand Down
4 changes: 2 additions & 2 deletions test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ final class Php80Test extends ExplicitRuleSetTestCase
],
'class_attributes_separation' => [
'elements' => [
'method',
'property',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => [
Expand Down
6 changes: 3 additions & 3 deletions test/Unit/RuleSet/PhpUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ final class PhpUnitTest extends AbstractRuleSetTestCase
'cast_spaces' => true,
'class_attributes_separation' => [
'elements' => [
'const',
'method',
'property',
'const' => 'one',
'method' => 'one',
'property' => 'one',
],
],
'class_definition' => true,
Expand Down

0 comments on commit 96388ea

Please sign in to comment.