Package Information |
Summary |
Extension exposing PHP 7 abstract syntax tree |
Maintainers |
Nikita Popov (lead)
[details]
Tyson Andre (lead)
[details]
|
License |
BSD-3-Clause |
Description |
php-ast exports the AST internally used by PHP 7.
php-ast is significantly faster than PHP-Parser, because the AST construction is implemented in C.
However, php-ast may only parse code that is syntactically valid on the version of PHP it runs on. |
Release notes
Version 1.1.3
(stable)
|
- Fix build against PHP 8.5. - In version 120, `exit` and `clone` are represented as `AST_CALL` instead of `AST_EXIT` and `AST_CLONE`. - Added `MODIFIER_PUBLIC_SET`, `MODIFIER_PROTECTED_SET` and `MODIFIER_PRIVATE_SET` asymmetric visibility flags. - Added `BINARY_PIPE` flag for `AST_BINARY_OP` for `|>` pipe operator. - Support `(void)` cast via `TYPE_VOID` flag on `AST_CAST`. |