File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ Basic usage
59
59
60
60
Code can be parsed using either ` ast\parse_code() ` , which accepts a code string, or
61
61
` ast\parse_file() ` , which accepts a file path. Additionally, both functions require a ` $version `
62
- argument to ensure forward-compatibility. The current version is 90 .
62
+ argument to ensure forward-compatibility. The current version is 100 .
63
63
64
64
``` php
65
- $ast = ast\parse_code('<?php ...', $version=70 );
65
+ $ast = ast\parse_code('<?php ...', $version=100 );
66
66
// or
67
- $ast = ast\parse_file('file.php', $version=70 );
67
+ $ast = ast\parse_file('file.php', $version=100 );
68
68
```
69
69
70
70
The abstract syntax tree returned by these functions consists of ` ast\Node ` objects.
Original file line number Diff line number Diff line change 1
1
* Run scripts/generate_ast_stub.php against PHP master.
2
2
* Update version in php_ast.h to remove dev suffix.
3
3
* Update version, release date in package.xml.
4
+ * Check whether "The current version" in README.md is up to date.
4
5
* Run `pecl package package.xml`.
5
6
* Run `pecl install ast-XXX.tgz`.
6
7
* Commit.
You can’t perform that action at this time.
0 commit comments