1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-27 12:24:39 +01:00

Removes unneeded code from JSON encoding example (#372)

This commit is contained in:
Ben Peachey 2017-04-07 16:15:46 +02:00 committed by Nikita Popov
parent b5935a4aff
commit 291bb27f6a

View File

@ -104,7 +104,6 @@ printLine('Hello World!!!');
CODE;
$parser = (new PhpParser\ParserFactory)->create(PhpParser\ParserFactory::PREFER_PHP7);
$nodeDumper = new PhpParser\NodeDumper;
try {
$stmts = $parser->parse($code);
@ -327,4 +326,4 @@ Produces:
</node:Expr_FuncCall>
</scalar:array>
</AST>
```
```