File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,12 @@ Basic usage
6060
6161Code 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
7171The 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
511511In the following the changes in the respective AST versions, as well as their current support state,
512512are listed.
513513
514- ### 120 (experimental )  
514+ ### 120 (current )  
515515
516516Supported 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
523523Supported since 1.1.2 (2024-08-10).
524524
Original file line number Diff line number Diff line change 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
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments