From d619c8b4e692d5fae76630a95c905e5ff8fbd01b Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 9 Jan 2024 20:23:09 +0100 Subject: [PATCH] Fix typo in upgrading guide Fixes #973. --- UPGRADE-5.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);