mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-16 13:00:23 +01:00
Updated Rector to commit 9cd63761b6016294caf2e9f412c4ff46edefa7f1
9cd63761b6
[docs] getRuleDefinition() no longer required for custom rules (#6440)
This commit is contained in:
parent
55520713a8
commit
ba509eb144
@ -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
|
||||
*/
|
||||
|
@ -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>>
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user