mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-26 20:14:46 +01:00
Docs: add missing $stmts (#433)
This commit is contained in:
parent
837579a40c
commit
7f92edf3a1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user