mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
use NodeTraverser service
This commit is contained in:
parent
c7be9f6817
commit
39862d2e55
@ -22,9 +22,9 @@ final class StandaloneTraverseNodeTraverser
|
||||
*/
|
||||
private $nodeVisitors = [];
|
||||
|
||||
public function __construct()
|
||||
public function __construct(NodeTraverser $nativeNodeTraverser)
|
||||
{
|
||||
$this->nativeNodeTraverser = new NodeTraverser;
|
||||
$this->nativeNodeTraverser = $nativeNodeTraverser;
|
||||
}
|
||||
|
||||
public function addNodeVisitor(NodeVisitor $nodeVisitor): void
|
||||
|
Loading…
x
Reference in New Issue
Block a user