Warning
This rule is deprecated and will be removed on next major version.
You should use trailing_comma_in_multiline
instead.
PHP multi-line arrays should have a trailing comma.
Whether a trailing comma should also be placed after heredoc end.
Allowed types: bool
Default value: false
Default configuration.
--- Original
+++ New
<?php
array(
1,
- 2
+ 2,
);
With configuration: ['after_heredoc' => true]
.
--- Original
+++ New
<?php
$x = [
'foo',
<<<EOD
bar
- EOD
+ EOD,
];