From ba509eb1444461229ccfedcd9b09e27499708596 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 15 Nov 2024 13:00:22 +0000 Subject: [PATCH] Updated Rector to commit 9cd63761b6016294caf2e9f412c4ff46edefa7f1 https://github.com/rectorphp/rector-src/commit/9cd63761b6016294caf2e9f412c4ff46edefa7f1 [docs] getRuleDefinition() no longer required for custom rules (#6440) --- src/Application/VersionResolver.php | 4 ++-- .../utils/rector/src/Rector/__Name__.php | 17 ----------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 6da2c325caa..1dced134085 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '4d3f35f0b9a47452ada3582ad596c08dfe6de84d'; + public const PACKAGE_VERSION = '9cd63761b6016294caf2e9f412c4ff46edefa7f1'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-11-15 19:15:20'; + public const RELEASE_DATE = '2024-11-15 12:57:55'; /** * @var int */ diff --git a/templates/custom-rule/utils/rector/src/Rector/__Name__.php b/templates/custom-rule/utils/rector/src/Rector/__Name__.php index d4bf30ee82b..fbbccf28be9 100644 --- a/templates/custom-rule/utils/rector/src/Rector/__Name__.php +++ b/templates/custom-rule/utils/rector/src/Rector/__Name__.php @@ -6,29 +6,12 @@ namespace Utils\Rector\Rector; use PhpParser\Node; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Tests\TypeDeclaration\Rector\__Name__\__Name__Test */ final class __Name__ extends AbstractRector { - public function getRuleDefinition(): RuleDefinition - { - return new RuleDefinition('// @todo fill the description', [ - new CodeSample( - <<<'CODE_SAMPLE' -// @todo fill code before -CODE_SAMPLE - , - <<<'CODE_SAMPLE' -// @todo fill code after -CODE_SAMPLE - ), - ]); - } - /** * @return array> */