Skip to content

Commit 2b4a381

Browse files
authored
Release php-ast 1.0.9 (nikic#175)
The API will change in php 8.0.0beta3. Attributes syntax will change in php 8.0.0RC1.
1 parent d1aca9c commit 2b4a381

File tree

3 files changed

+26
-11
lines changed

3 files changed

+26
-11
lines changed

ast_stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
const AST_USE = 143;
2727
const AST_TYPE_UNION = 144;
2828
const AST_ATTRIBUTE_LIST = 145;
29-
const AST_MATCH_ARM_LIST = 146;
29+
const AST_MATCH_ARM_LIST = 147;
3030
const AST_NAME = 2048;
3131
const AST_CLOSURE_VAR = 2049;
3232
const AST_NULLABLE_TYPE = 2050;

package.xml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,18 @@
1818
<email>[email protected]</email>
1919
<active>yes</active>
2020
</lead>
21-
<date>2020-08-04</date>
21+
<date>2020-09-02</date>
2222
<version>
23-
<release>1.0.8</release>
24-
<api>1.0.8</api>
23+
<release>1.0.9</release>
24+
<api>1.0.9</api>
2525
</version>
2626
<stability>
2727
<release>stable</release>
2828
<api>stable</api>
2929
</stability>
3030
<license uri="https://github.com/nikic/php-ast/blob/master/LICENSE">BSD-3-Clause</license>
3131
<notes>
32-
- Recommend using the new constant `ast\flags\PARAM_MODIFIER_*` when checking if parameters use constructor property promotion.
33-
The values of `ast\flags\MODIFIER_*` and `ast\flags\PARAM_VARIADIC` had some overlap in some php 7 versions.
34-
The new constants will have the same values as `ast\flags\MODIFIER_*` in PHP 8.0+, but different values in PHP 7
35-
(and these flags will never be set in php 7).
36-
- Support PHP 8.0's named arguments.
37-
- Support PHP 8.0's nullsafe operator (`?->`).
32+
- Support API change in php 8.0.0beta3.
3833
</notes>
3934
<contents>
4035
<dir name="/">
@@ -137,6 +132,26 @@
137132
<providesextension>ast</providesextension>
138133
<extsrcrelease />
139134
<changelog>
135+
<release>
136+
<date>2020-08-04</date>
137+
<version>
138+
<release>1.0.8</release>
139+
<api>1.0.8</api>
140+
</version>
141+
<stability>
142+
<release>stable</release>
143+
<api>stable</api>
144+
</stability>
145+
<license uri="https://github.com/nikic/php-ast/blob/master/LICENSE">BSD-3-Clause</license>
146+
<notes>
147+
- Recommend using the new constant `ast\flags\PARAM_MODIFIER_*` when checking if parameters use constructor property promotion.
148+
The values of `ast\flags\MODIFIER_*` and `ast\flags\PARAM_VARIADIC` had some overlap in some php 7 versions.
149+
The new constants will have the same values as `ast\flags\MODIFIER_*` in PHP 8.0+, but different values in PHP 7
150+
(and these flags will never be set in php 7).
151+
- Support PHP 8.0's named arguments.
152+
- Support PHP 8.0's nullsafe operator (`?->`).
153+
</notes>
154+
</release>
140155
<release>
141156
<date>2020-07-11</date>
142157
<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.8"
10+
#define PHP_AST_VERSION "1.0.9"
1111

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

0 commit comments

Comments
 (0)