Skip to content

Commit a452820

Browse files
committed
Add more elements to trailing_comma_in_multiline
1 parent 954d639 commit a452820

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
'CodeIgniter 4 framework',
3535
'CodeIgniter Foundation',
3636
37-
2021
37+
2021,
3838
);

src/CodeIgniter4.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,13 @@ public function __construct()
677677
'ternary_to_null_coalescing' => true,
678678
'trailing_comma_in_multiline' => [
679679
'after_heredoc' => true,
680-
'elements' => ['arrays'],
680+
'elements' => [
681+
'arguments',
682+
'array_destructuring',
683+
'arrays',
684+
'match',
685+
'parameters',
686+
],
681687
],
682688
'trim_array_spaces' => true,
683689
'type_declaration_spaces' => ['elements' => ['function', 'property']],

0 commit comments

Comments
 (0)