Skip to content

Commit 6e783b9

Browse files
TysonAndrenikic
authored andcommitted
Update current version in docs to 70
Also, fix grammar nits. (there should be commas after "Furthermore". More common choices such as "Next,"/"Then," might be more conventional for installation instructions)
1 parent 3d85ce0 commit 6e783b9

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ Basic usage
5858
-----------
5959

6060
Code can be parsed using either `ast\parse_code()`, which accepts a code string, or
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 50.
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 70.
6363

6464
```php
65-
$ast = ast\parse_code('<?php ...', $version=50);
65+
$ast = ast\parse_code('<?php ...', $version=70);
6666
// or
67-
$ast = ast\parse_file('file.php', $version=50);
67+
$ast = ast\parse_file('file.php', $version=70);
6868
```
6969

7070
The abstract syntax tree returned by these functions consists of `ast\Node` objects.
@@ -109,7 +109,7 @@ $code = <<<'EOC'
109109
$var = 42;
110110
EOC;
111111

112-
var_dump(ast\parse_code($code, $version=50));
112+
var_dump(ast\parse_code($code, $version=70));
113113

114114
// Output:
115115
object(ast\Node)#1 (4) {
@@ -166,7 +166,7 @@ $code = <<<'EOC'
166166
$var = 42;
167167
EOC;
168168

169-
echo ast_dump(ast\parse_code($code, $version=50)), "\n";
169+
echo ast_dump(ast\parse_code($code, $version=70)), "\n";
170170

171171
// Output:
172172
AST_STMT_LIST

package.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</lead>
2121
<date>2019-11-23</date>
2222
<version>
23-
<release>1.0.5</release>
23+
<release>1.0.6dev</release>
2424
<api>1.0.5</api>
2525
</version>
2626
<stability>
@@ -29,7 +29,7 @@
2929
</stability>
3030
<license uri="https://github.com/nikic/php-ast/blob/master/LICENSE">BSD-3-Clause</license>
3131
<notes>
32-
- Add ast\flags\TYPE_FALSE to support PHP 8.0 Union Types.
32+
- TBD
3333
</notes>
3434
<contents>
3535
<dir name="/">
@@ -120,6 +120,21 @@
120120
<providesextension>ast</providesextension>
121121
<extsrcrelease />
122122
<changelog>
123+
<release>
124+
<date>2019-11-23</date>
125+
<version>
126+
<release>1.0.5</release>
127+
<api>1.0.5</api>
128+
</version>
129+
<stability>
130+
<release>stable</release>
131+
<api>stable</api>
132+
</stability>
133+
<license uri="https://github.com/nikic/php-ast/blob/master/LICENSE">BSD-3-Clause</license>
134+
<notes>
135+
- Add ast\flags\TYPE_FALSE to support PHP 8.0 Union Types.
136+
</notes>
137+
</release>
123138
<release>
124139
<date>2019-11-10</date>
125140
<version>

php_ast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
extern zend_module_entry ast_module_entry;
88
#define phpext_ast_ptr &ast_module_entry
99

10-
#define PHP_AST_VERSION "1.0.5"
10+
#define PHP_AST_VERSION "1.0.6dev"
1111

1212
#ifdef PHP_WIN32
1313
# define PHP_AST_API __declspec(dllexport)

0 commit comments

Comments
 (0)