When making a method or function call on a single line there MUST NOT be a trailing comma after the last argument.
--- Original
+++ New
<?php
-foo($a,);
+foo($a);
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.