Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 778 Bytes

no_trailing_comma_in_singleline_function_call.rst

File metadata and controls

31 lines (22 loc) · 778 Bytes

Rule no_trailing_comma_in_singleline_function_call

When making a method or function call on a single line there MUST NOT be a trailing comma after the last argument.

Examples

Example #1

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

Rule sets

The rule is part of the following rule sets:

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