Skip to content

Commit f958360

Browse files
authored
Make AST version 80 the current AST version. (nikic#179)
This will stop being experimental in 1.0.10. Closes nikic#178
1 parent e2362a9 commit f958360

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,16 +491,17 @@ function accepts a boolean argument that determines whether deprecated versions
491491
In the following the changes in the respective AST versions, as well as their current support state,
492492
are listed.
493493

494-
### 80 (experimental)
494+
### 80 (current)
495495

496-
Available since 1.0.7 (XXX).
496+
Supported since 1.0.10 (XXX).
497497

498498
* `mixed` type hints are now reported as an `AST_TYPE` with type `TYPE_MIXED` instead of an `AST_NAME`.
499-
* `AST_CLASS_CONST_GROUP` nodes are emitted for all class constant declarations.
499+
* `AST_CLASS_CONST_GROUP` nodes are emitted for class constant declarations wrapping the `AST_CLASS_CONST_DECL` and any attributes.
500+
Previously, `AST_CLASS_CONST_DECL` would be emitted.
500501
* `AST_PARAM`, `AST_CLASS_DECL`, `AST_METHOD`, `AST_PROP_DECL`, `AST_CLOSURE`, `AST_FUNC_DECL`, and `AST_ARROW_FUNC` nodes
501502
now contain an attributes child.
502503

503-
### 70 (current)
504+
### 70 (stable)
504505

505506
Supported since 1.0.1 (2019-02-11).
506507

ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define AST_CACHE_SLOT_LINENO &AST_G(cache_slots)[3 * 2]
2929
#define AST_CACHE_SLOT_CHILDREN &AST_G(cache_slots)[3 * 3]
3030

31-
#define AST_CURRENT_VERSION 70
31+
#define AST_CURRENT_VERSION 80
3232

3333
/* Additional flags for BINARY_OP */
3434
#define AST_BINARY_IS_GREATER 256

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<license uri="https://github.com/nikic/php-ast/blob/master/LICENSE">BSD-3-Clause</license>
3131
<notes>
3232
- Support attributes syntax change (`#[...]`) in php 8.0.0RC1.
33+
- Change the current AST version from 70 to 80. AST version 80 is no longer experimental.
3334
</notes>
3435
<contents>
3536
<dir name="/">

0 commit comments

Comments
 (0)