diff --git a/UPGRADE-5.0.md b/UPGRADE-5.0.md index ab282822..3460934f 100644 --- a/UPGRADE-5.0.md +++ b/UPGRADE-5.0.md @@ -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);