Skip to content

Commit 34e55df

Browse files
authored
Update the policy for removing AST versions. (nikic#155)
We're no longer on 0.x. Removing a supported version instead of deprecating it would be considered a backwards incompatible change by maintainers of applications using php-ast ^1.x.
1 parent 4a15f14 commit 34e55df

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,7 @@ account for new features in newer PHP versions, or to improve it in other ways.
469469
always be made under a new AST version, while previous formats continue to be supported for some
470470
time.
471471

472-
Old AST versions may be deprecated and subsequently removed. However, AST versions will only be
473-
removed in conjunction with a version increase of the AST extension from 0.x to 0.(x+1).
472+
Old AST versions may be deprecated in minor versions and removed in major versions of the AST extension.
474473

475474
A list of currently supported versions is available through `ast\get_supported_versions()`. The
476475
function accepts a boolean argument that determines whether deprecated versions should be excluded.

package.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
</lead>
2121
<date>2020-02-22</date>
2222
<version>
23-
<release>1.0.6</release>
24-
<api>1.0.6</api>
23+
<release>1.0.7dev</release>
24+
<api>1.0.7dev</api>
2525
</version>
2626
<stability>
2727
<release>stable</release>
@@ -122,6 +122,21 @@
122122
<providesextension>ast</providesextension>
123123
<extsrcrelease />
124124
<changelog>
125+
<release>
126+
<date>2020-02-22</date>
127+
<version>
128+
<release>1.0.6</release>
129+
<api>1.0.6</api>
130+
</version>
131+
<stability>
132+
<release>stable</release>
133+
<api>stable</api>
134+
</stability>
135+
<license uri="https://github.com/nikic/php-ast/blob/master/LICENSE">BSD-3-Clause</license>
136+
<notes>
137+
- Support TYPE_STATIC for the php 8.0 static return type.
138+
</notes>
139+
</release>
125140
<release>
126141
<date>2019-11-23</date>
127142
<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.6"
10+
#define PHP_AST_VERSION "1.0.7dev"
1111

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

0 commit comments

Comments
 (0)