From 65dda62cc03e805002f421e1ae35bad6075eb54d Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 11 Jul 2025 17:59:32 +0700 Subject: [PATCH] Clean up origNode set on DowngradeArrayAllRector --- .../Rector/Expression/DowngradeArrayAllRector.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/rules/DowngradePhp84/Rector/Expression/DowngradeArrayAllRector.php b/rules/DowngradePhp84/Rector/Expression/DowngradeArrayAllRector.php index 2df6cbf3..74dc4ccc 100644 --- a/rules/DowngradePhp84/Rector/Expression/DowngradeArrayAllRector.php +++ b/rules/DowngradePhp84/Rector/Expression/DowngradeArrayAllRector.php @@ -16,7 +16,6 @@ use PhpParser\Node\Stmt\Expression; use PhpParser\Node\Stmt\Foreach_; use PhpParser\Node\Stmt\If_; -use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; @@ -89,8 +88,6 @@ public function refactor(Node $node): ?array } $valueCond = $args[1]->value->expr; - $valueCond->setAttribute(AttributeKey::ORIGINAL_NODE, null); - $if = new If_(new BooleanNot($valueCond), [ 'stmts' => [ new Expression(new Assign($node->expr->var, new ConstFetch(new Name('false')))),