Skip to content

Commit 8a7352b

Browse files
committed
Enhancement: Configure trailing_comma_in_multiline fixer to add trailing commas for parameters
1 parent a99fb47 commit 8a7352b

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ For a full diff see [`2.13.1...main`][2.13.1...main].
1212

1313
* Updated `friendsofphp/php-cs-fixer` ([#400]), by [@dependabot]
1414
* Configured `trailing_comma_in_multiline` fixer to add trailing commas for arguments in `Php73`, `Php74`, and `Php80` rule sets ([#401]), by [@localheinz]
15+
* Configured `trailing_comma_in_multiline` fixer to add trailing commas for parameters in `Php80` rule set ([#404]), by [@localheinz]
1516

1617
## [`2.13.1`][2.13.1]
1718

@@ -397,6 +398,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
397398
[#392]: https://github.com/ergebnis/php-cs-fixer-config/pull/392
398399
[#400]: https://github.com/ergebnis/php-cs-fixer-config/pull/400
399400
[#401]: https://github.com/ergebnis/php-cs-fixer-config/pull/401
401+
[#404]: https://github.com/ergebnis/php-cs-fixer-config/pull/404
400402

401403
[@dependabot]: https://github.com/apps/dependabot
402404
[@linuxjuggler]: https://github.com/linuxjuggler

src/RuleSet/Php80.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
10251025
'elements' => [
10261026
'arguments',
10271027
'arrays',
1028+
'parameters',
10281029
],
10291030
],
10301031
'trim_array_spaces' => true,

test/Unit/RuleSet/Php80Test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
10311031
'elements' => [
10321032
'arguments',
10331033
'arrays',
1034+
'parameters',
10341035
],
10351036
],
10361037
'trim_array_spaces' => true,

0 commit comments

Comments
 (0)