Skip to content

Commit 6fe6641

Browse files
committed
Mark version 120 as current
1 parent d4cac8f commit 6fe6641

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ Basic usage
6060

6161
Code can be parsed using either `ast\parse_code()`, which accepts a code string, or
6262
`ast\parse_file()`, which accepts a file path. Additionally, both functions require a `$version`
63-
argument to ensure forward-compatibility. The current version is 110.
63+
argument to ensure forward-compatibility. The current version is 120.
6464

6565
```php
66-
$ast = ast\parse_code('<?php ...', $version=100);
66+
$ast = ast\parse_code('<?php ...', $version=120);
6767
// or
68-
$ast = ast\parse_file('file.php', $version=100);
68+
$ast = ast\parse_file('file.php', $version=120);
6969
```
7070

7171
The abstract syntax tree returned by these functions consists of `ast\Node` objects.
@@ -511,14 +511,14 @@ function accepts a boolean argument that determines whether deprecated versions
511511
In the following the changes in the respective AST versions, as well as their current support state,
512512
are listed.
513513

514-
### 120 (experimental)
514+
### 120 (current)
515515

516516
Supported since 1.1.3 (TBD).
517517

518518
* `clone $expr` is now represented like a function call (using `AST_CALL` instead of `AST_CLONE`).
519519
* `exit($expr)` is now represented like a function call (using `AST_CALL` instead of `AST_EXIT`).
520520

521-
### 110 (current)
521+
### 110 (stable)
522522

523523
Supported since 1.1.2 (2024-08-10).
524524

ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#define AST_METADATA_PROP_FLAGS(object) OBJ_PROP_NUM((object), 2)
7272
#define AST_METADATA_PROP_FLAGS_COMBINABLE(object) OBJ_PROP_NUM((object), 3)
7373

74-
#define AST_CURRENT_VERSION 110
74+
#define AST_CURRENT_VERSION 120
7575

7676
/* Additional flags for BINARY_OP */
7777
#define AST_BINARY_IS_GREATER 256

0 commit comments

Comments
 (0)