Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 24, 2024
1 parent 9f3ebf2 commit 8269e63
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@

use PhpParser\Node;
use PhpParser\Node\Stmt\ClassConst;
use PHPStan\PhpDocParser\Ast\PhpDoc\VarTagValueNode;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
use Rector\Comments\NodeDocBlock\DocBlockUpdater;
use Rector\NodeDecorator\PropertyTypeDecorator;
use Rector\NodeManipulator\PropertyDecorator;
use Rector\Rector\AbstractRector;
use Rector\StaticTypeMapper\StaticTypeMapper;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;

Expand All @@ -25,8 +20,7 @@ final class DowngradeTypedClassConstRector extends AbstractRector
{
public function __construct(
private readonly PropertyDecorator $propertyDecorator
)
{
) {
}

/**
Expand Down Expand Up @@ -73,10 +67,7 @@ public function refactor(Node $node): ?Node
return null;
}

$this->propertyDecorator->decorateWithDocBlock(
$node,
$node->type
);
$this->propertyDecorator->decorateWithDocBlock($node, $node->type);

$node->type = null;
return $node;
Expand Down

0 comments on commit 8269e63

Please sign in to comment.