Skip to content

Commit

Permalink
Enhancement: Add constant to elements option of type_declaration_spac…
Browse files Browse the repository at this point in the history
…es fixer
  • Loading branch information
localheinz committed Feb 23, 2025
1 parent 0e302ab commit 7e044ea
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ For a full diff see [`6.43.1...main`][6.43.1...main].
### Changed

- Updated `friendsofphp/php-cs-fixer` ([#1177]), by [@dependabot]
- Added `constant` to `elements` option of `type_declaration_spaces` fixer ([#1178]), by [@localheinz]

## [`6.43.1`][6.43.1]

Expand Down Expand Up @@ -1882,6 +1883,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#1170]: https://github.com/ergebnis/php-cs-fixer-config/pull/1170
[#1173]: https://github.com/ergebnis/php-cs-fixer-config/pull/1173
[#1177]: https://github.com/ergebnis/php-cs-fixer-config/pull/1177
[#1178]: https://github.com/ergebnis/php-cs-fixer-config/pull/1178

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ public static function create(): RuleSet
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
],
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php72.php
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ public static function create(): RuleSet
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
],
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@ public static function create(): RuleSet
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
],
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ public static function create(): RuleSet
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ public static function create(): RuleSet
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ public static function create(): RuleSet
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php82.php
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ public static function create(): RuleSet
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php83.php
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ public static function create(): RuleSet
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php84.php
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ public static function create(): RuleSet
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php71Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ protected function expectedRules(): Rules
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
],
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php72Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ protected function expectedRules(): Rules
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
],
],
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 @@ -877,6 +877,7 @@ protected function expectedRules(): Rules
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
],
],
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 @@ -881,6 +881,7 @@ protected function expectedRules(): Rules
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
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 @@ -902,6 +902,7 @@ protected function expectedRules(): Rules
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ protected function expectedRules(): Rules
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php82Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ protected function expectedRules(): Rules
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php83Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ protected function expectedRules(): Rules
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php84Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ protected function expectedRules(): Rules
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'constant',
'function',
'property',
],
Expand Down

0 comments on commit 7e044ea

Please sign in to comment.