fix reseting of removed nodes

This commit is contained in:
Tomas Votruba 2019-08-09 15:46:00 +02:00
parent 36925e4a4b
commit 2d1ee98ef3
2 changed files with 2 additions and 4 deletions

View File

@ -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: ~

View File

@ -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);
}