Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 661 Bytes

no_trailing_comma_in_list_call.rst

File metadata and controls

30 lines (21 loc) · 661 Bytes

Rule no_trailing_comma_in_list_call

Remove trailing commas in list function calls.

Examples

Example #1

--- Original
+++ New
 <?php
-list($a, $b,) = foo();
+list($a, $b) = foo();

Rule sets

The rule is part of the following rule sets:

@PhpCsFixer
Using the @PhpCsFixer rule set will enable the no_trailing_comma_in_list_call rule.
@Symfony
Using the @Symfony rule set will enable the no_trailing_comma_in_list_call rule.