Skip to content

Commit b21e92f

Browse files
committed
Enable all options for trailing_comma_in_multiline
1 parent f68a3c4 commit b21e92f

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
CHANGELOG
22
=========
33

4-
[Next release](https://github.com/mfn/php-cs-fixer-config/compare/2.5.0...master)
4+
[Next release](https://github.com/mfn/php-cs-fixer-config/compare/2.8.0...master)
55
--------------
66

7+
2025-12-05, 2.8.0
8+
-----------------
9+
- Enable all options for `trailing_comma_in_multiline`
10+
711
2025-01-27, 2.6.0
812
-----------------
913
- Enable `nullable_type_declaration_for_default_null_value`

src/Config.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,16 @@ public static function getRules(): array
285285
'ternary_operator_spaces' => true,
286286
'ternary_to_elvis_operator' => false,
287287
'ternary_to_null_coalescing' => true,
288-
'trailing_comma_in_multiline' => true,
288+
'trailing_comma_in_multiline' => [
289+
'after_heredoc' => true,
290+
'elements' => [
291+
'arguments',
292+
'array_destructuring',
293+
'arrays',
294+
'match',
295+
'parameters',
296+
],
297+
],
289298
'trim_array_spaces' => true,
290299
'unary_operator_spaces' => true,
291300
'use_arrow_functions' => false,

0 commit comments

Comments
 (0)