Docs: add missing $stmts (#433)

This commit is contained in:
Tomáš Votruba 2017-10-31 22:48:00 +01:00 committed by Nikita Popov
parent 837579a40c
commit 7f92edf3a1

View File

@ -17,7 +17,7 @@ $stmts = $parser->parse($code);
// MODIFY $stmts here // MODIFY $stmts here
$prettyPrinter = new PhpParser\PrettyPrinter\Standard; $prettyPrinter = new PhpParser\PrettyPrinter\Standard;
$newCode = $prettyPrinter->prettyPrintFile(); $newCode = $prettyPrinter->prettyPrintFile($stmts);
``` ```
The pretty printer has three basic printing methods: `prettyPrint()`, `prettyPrintFile()` and The pretty printer has three basic printing methods: `prettyPrint()`, `prettyPrintFile()` and