* 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\Phpdoc; use PhpCsFixer\AbstractProxyFixer; use PhpCsFixer\FixerDefinition\CodeSample; use PhpCsFixer\FixerDefinition\FixerDefinition; use PhpCsFixer\FixerDefinition\FixerDefinitionInterface; /** * @author Graham Campbell * @author Dariusz Rumiński */ final class PhpdocNoPackageFixer extends AbstractProxyFixer { public function getDefinition(): FixerDefinitionInterface { return new FixerDefinition( '`@package` and `@subpackage` annotations should be omitted from PHPDoc.', [ new CodeSample( 'configure(['annotations' => ['package', 'subpackage']]); return [$fixer]; } }