Skip to content

Commit

Permalink
Fix pretty printing example
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes authored and nikic committed Sep 5, 2022
1 parent 96037b3 commit 7362f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/component/Pretty_printing.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ $traverser->addVisitor(new NodeVisitor\CloningVisitor());
$printer = new PrettyPrinter\Standard();

$oldStmts = $parser->parse($code);
$oldTokens = $lexer->getTokens();
$oldTokens = $parser->getLexer()->getTokens();

$newStmts = $traverser->traverse($oldStmts);

Expand Down

0 comments on commit 7362f2b

Please sign in to comment.