Fix typo in upgrading guide

Fixes #973.
This commit is contained in:
Nikita Popov 2024-01-09 20:23:09 +01:00
parent eb036d5a09
commit d619c8b4e6

View File

@ -519,7 +519,7 @@ $newStmts = $traverser->traverse($oldStmts);
$parser = (new ParserFactory())->createForNewestSupportedVersion();
$oldStmts = $parser->parse($code);
$oldTokens = $lexer->getTokens();
$oldTokens = $parser->getTokens();
$traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());
$newStmts = $traverser->traverse($oldStmts);