diff --git a/doc/4_Code_generation.markdown b/doc/4_Code_generation.markdown index c75e23c..86f1543 100644 --- a/doc/4_Code_generation.markdown +++ b/doc/4_Code_generation.markdown @@ -36,13 +36,15 @@ $node = $factory->class('SomeClass') ; $stmts = array($node); -echo $prettyPrinter->prettyPrint($stmts); +$prettyPrinter = new PhpParser\PrettyPrinter\Standard(); +echo $prettyPrinter->prettyPrintFile($stmts); ``` -This will produce the following output with the default pretty printer: +This will produce the following output with the standard pretty printer: ```php