Mercurial > hg > isophonics-drupal-site
diff vendor/nikic/php-parser/doc/component/JSON_representation.markdown @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 5fb285c0d0e3 |
children |
line wrap: on
line diff
--- a/vendor/nikic/php-parser/doc/component/JSON_representation.markdown Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/nikic/php-parser/doc/component/JSON_representation.markdown Thu Feb 28 13:21:36 2019 +0000 @@ -116,8 +116,8 @@ ```php <?php -$nodeDecoder = new PhpParser\NodeDecoder(); -$ast = $nodeDecoder->decode($json); +$jsonDecoder = new PhpParser\JsonDecoder(); +$ast = $jsonDecoder->decode($json); ``` Note that not all ASTs can be represented using JSON. In particular: @@ -128,4 +128,4 @@ If the node tree is not representable in JSON, the initial `json_encode()` call will fail. -From the command line, a JSON dump can be obtained using `vendor/bin/php-parse -j file.php`. \ No newline at end of file +From the command line, a JSON dump can be obtained using `vendor/bin/php-parse -j file.php`.