* Dariusz RumiƄski * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Fixer\FunctionNotation; use PhpCsFixer\AbstractProxyFixer; use PhpCsFixer\Fixer\Basic\NoTrailingCommaInSinglelineFixer; use PhpCsFixer\Fixer\DeprecatedFixerInterface; use PhpCsFixer\FixerDefinition\CodeSample; use PhpCsFixer\FixerDefinition\FixerDefinition; use PhpCsFixer\FixerDefinition\FixerDefinitionInterface; /** * @deprecated */ final class NoTrailingCommaInSinglelineFunctionCallFixer extends AbstractProxyFixer implements DeprecatedFixerInterface { public function getDefinition(): FixerDefinitionInterface { return new FixerDefinition( 'When making a method or function call on a single line there MUST NOT be a trailing comma after the last argument.', [new CodeSample("proxyFixers); } protected function createProxyFixers(): array { $fixer = new NoTrailingCommaInSinglelineFixer(); $fixer->configure(['elements' => ['arguments', 'array_destructuring']]); return [$fixer]; } }