We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2327b commit 31b8bdeCopy full SHA for 31b8bde
rules/DowngradePhp84/Rector/Expression/DowngradeArrayAllRector.php
@@ -16,7 +16,6 @@
16
use PhpParser\Node\Stmt\Expression;
17
use PhpParser\Node\Stmt\Foreach_;
18
use PhpParser\Node\Stmt\If_;
19
-use Rector\NodeTypeResolver\Node\AttributeKey;
20
use Rector\Rector\AbstractRector;
21
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
22
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
@@ -89,8 +88,6 @@ public function refactor(Node $node): ?array
89
88
}
90
91
$valueCond = $args[1]->value->expr;
92
- $valueCond->setAttribute(AttributeKey::ORIGINAL_NODE, null);
93
-
94
$if = new If_(new BooleanNot($valueCond), [
95
'stmts' => [
96
new Expression(new Assign($node->expr->var, new ConstFetch(new Name('false')))),
0 commit comments