Skip to content

Commit

Permalink
Enhancement: Configure type_declaration_spaces fixer to include prope…
Browse files Browse the repository at this point in the history
…rty in the elements option
  • Loading branch information
localheinz committed Jul 5, 2023
1 parent f81fc88 commit 3d88e4c
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -12,6 +12,7 @@ For a full diff see [`5.10.0...main`][5.10.0...main].

- Updated `friendsofphp/php-cs-fixer` ([#815]), by [@dependabot]
- Enabled and configured the `nullable_type_declaration` fixer ([#816]), by [@localheinz]
- Configured the `type_declaration_spaces` fixer to include `property` in the `elements` option ([#817]), by [@localheinz]

## [`5.10.0`][5.10.0]

Expand Down Expand Up @@ -1042,6 +1043,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#810]: https://github.com/ergebnis/php-cs-fixer-config/pull/810
[#815]: https://github.com/ergebnis/php-cs-fixer-config/pull/815
[#816]: https://github.com/ergebnis/php-cs-fixer-config/pull/816
[#817]: https://github.com/ergebnis/php-cs-fixer-config/pull/817

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php74.php
Expand Up @@ -792,6 +792,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'type_declaration_spaces' => [
'elements' => [
'function',
'property',
],
],
'types_spaces' => [
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php80.php
Expand Up @@ -801,6 +801,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'type_declaration_spaces' => [
'elements' => [
'function',
'property',
],
],
'types_spaces' => [
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php81.php
Expand Up @@ -803,6 +803,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'type_declaration_spaces' => [
'elements' => [
'function',
'property',
],
],
'types_spaces' => [
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php82.php
Expand Up @@ -803,6 +803,7 @@ final class Php82 extends AbstractRuleSet implements ExplicitRuleSet
'type_declaration_spaces' => [
'elements' => [
'function',
'property',
],
],
'types_spaces' => [
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php74Test.php
Expand Up @@ -797,6 +797,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
'type_declaration_spaces' => [
'elements' => [
'function',
'property',
],
],
'types_spaces' => [
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php80Test.php
Expand Up @@ -806,6 +806,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'type_declaration_spaces' => [
'elements' => [
'function',
'property',
],
],
'types_spaces' => [
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php81Test.php
Expand Up @@ -808,6 +808,7 @@ final class Php81Test extends ExplicitRuleSetTestCase
'type_declaration_spaces' => [
'elements' => [
'function',
'property',
],
],
'types_spaces' => [
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php82Test.php
Expand Up @@ -808,6 +808,7 @@ final class Php82Test extends ExplicitRuleSetTestCase
'type_declaration_spaces' => [
'elements' => [
'function',
'property',
],
],
'types_spaces' => [
Expand Down

0 comments on commit 3d88e4c

Please sign in to comment.