Updated Rector to commit 9cd63761b6016294caf2e9f412c4ff46edefa7f1

9cd63761b6 [docs] getRuleDefinition() no longer required for custom rules (#6440)
This commit is contained in:
Tomas Votruba 2024-11-15 13:00:22 +00:00
parent 55520713a8
commit ba509eb144
2 changed files with 2 additions and 19 deletions

View File

@ -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
*/

View File

@ -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<class-string<Node>>
*/