Skip to content

Commit

Permalink
docs: correct the usage of parsePhpCodeStringToAst method in README
Browse files Browse the repository at this point in the history
  • Loading branch information
rainx committed Sep 14, 2023
1 parent 4be26ac commit 7c693cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import {
const rootNodes: NodeTypeInheritingFromNodeAbstract[] =
CliHelpers.parsePhpFileToAst('./hello.php');
// or if you prefer to get AST from code string, just use
// CliHelpers.parsePhpCodeStringToAst(`echo "Hello";`)
// CliHelpers.parsePhpCodeStringToAst(`<?php echo "Hello";`)

console.log(rootNodes);
// [
Expand Down

0 comments on commit 7c693cd

Please sign in to comment.