mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
fix reseting of removed nodes
This commit is contained in:
parent
36925e4a4b
commit
2d1ee98ef3
@ -18,4 +18,5 @@ parameters:
|
||||
|
||||
services:
|
||||
# Rector\CodingStyle\Rector\ClassMethod\NewlineBeforeNewAssignSetRector: ~
|
||||
Rector\CodingStyle\Rector\Namespace_\ImportFullyQualifiedNamesRector: ~
|
||||
# Rector\CodingStyle\Rector\Namespace_\ImportFullyQualifiedNamesRector: ~
|
||||
Rector\DeadCode\Rector\Class_\RemoveSetterOnlyPropertyAndMethodCallRector: ~
|
||||
|
@ -80,9 +80,6 @@ final class NodeRemovingCommander implements CommanderInterface
|
||||
$nodeTraverser = new NodeTraverser();
|
||||
$nodeTraverser->addVisitor($this->createNodeVisitor());
|
||||
|
||||
// new nodes to remove are always per traverse
|
||||
$this->nodesToRemove = [];
|
||||
|
||||
return $nodeTraverser->traverse($nodes);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user