
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.
WarningΒΆ
This rule is deprecated and will be removed in the next major versionΒΆ
You should use no_trailing_comma_in_singleline
instead.
ExamplesΒΆ
Example #1ΒΆ
--- Original
+++ New
<?php
-foo($a,);
+foo($a);
Source classΒΆ
PhpCsFixer\Fixer\FunctionNotation\NoTrailingCommaInSinglelineFunctionCallFixer