Skip to content

Commit cb070a7

Browse files
committed
Correctly initialise the node visitor used during tests.
1 parent 09d1ff7 commit cb070a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/NodeVisitorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ private function parse(string $php, int $symbols, array $config): NodeVisitor
1616

1717
$traverser = new NodeTraverser();
1818
$traverser->addVisitor(new NameResolver());
19-
$visitor = new NodeVisitor($symbols, $config);
19+
$visitor = new NodeVisitor();
20+
$visitor->init($symbols, $config);
2021
$traverser->addVisitor($visitor);
2122

2223
$stmts = $parser->parse($php);

0 commit comments

Comments
 (0)