Skip to content

Commit f2e00cd

Browse files
committed
Re-skip Override and SensitiveParameter
1 parent e8b6950 commit f2e00cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Rector\Contract\Rector\ConfigurableRectorInterface;
2020
use Rector\DowngradePhp80\ValueObject\DowngradeAttributeToAnnotation;
2121
use Rector\NodeFactory\DoctrineAnnotationFactory;
22+
use Rector\NodeTypeResolver\Node\AttributeKey;
2223
use Rector\Rector\AbstractRector;
2324
use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample;
2425
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
@@ -120,8 +121,7 @@ public function refactor(Node $node): ?Node
120121
(string) $oldTokens[$attrGroup->getEndTokenPos() + 1],
121122
"\n"
122123
)) {
123-
// add new line
124-
$oldTokens[$attrGroup->getEndTokenPos() + 1]->text = "\n" . $oldTokens[$attrGroup->getEndTokenPos() + 1]->text;
124+
$node->setAttribute(AttributeKey::ORIGINAL_NODE, null);
125125
$this->isDowngraded = true;
126126
}
127127

0 commit comments

Comments
 (0)