#
1fc2c3a1 |
| 10-Aug-2024 |
Tyson Andre |
Support PHP 8.4 property hooks in AST version 110 (#241) Add 'hooks' child of type `AST_PROPERTY_HOOK` to `AST_PROP_ELEM` and `AST_PARAM` (constructor property promotion) in AST version
Support PHP 8.4 property hooks in AST version 110 (#241) Add 'hooks' child of type `AST_PROPERTY_HOOK` to `AST_PROP_ELEM` and `AST_PARAM` (constructor property promotion) in AST version 110. In version 110, change `AST_CLOSURE` and `AST_ARROW_FUNC` nodes to have no `name`. Fixes #240
show more ...
|
#
260678d4 |
| 09-Aug-2022 |
Tyson Andre |
Add encaps var flags for AST_DIM/AST_VAR for php 8.2 (#227) For https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation Closes #224 In util.php: Don't print a
Add encaps var flags for AST_DIM/AST_VAR for php 8.2 (#227) For https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation Closes #224 In util.php: Don't print a 0 flag value for combinable flags For php-ast self-testing, minimize the number of changes in the future when similar combinable flags get added to existing ast var types.
show more ...
|
#
e7dceba7 |
| 08-Aug-2022 |
Tyson Andre |
Add support for TYPE_TRUE for php 8.2 (#229) * Add support for TYPE_TRUE for php 8.2 https://wiki.php.net/rfc/true-type * Fix test name
|
#
e460595b |
| 07-Aug-2022 |
Tyson Andre |
Add tests, flag constants for php 8.2 readonly classes (#228) * Add tests, flag constants for php 8.2 readonly classes * Address review comments
|
#
c533904c |
| 24-Jul-2021 |
Tyson Andre |
Support php 8.1 read-only properties, first-class callable syntax (#209) Add php 8.1 readonly property support, first-class callables And run all tests even after the first case fai
Support php 8.1 read-only properties, first-class callable syntax (#209) Add php 8.1 readonly property support, first-class callables And run all tests even after the first case fails Mark ast version 90 as current and 85 as no longer experimental. Add date to changelog, bump version in php_ast.h
show more ...
|
#
83c769f5 |
| 07-Jul-2021 |
Tyson Andre |
Support php 8.1 intersection types (#208) * Add tests of final class constant modifier, update metadata (https://wiki.php.net/rfc/final_class_const for php 8.1) * Support proposed php 8.
Support php 8.1 intersection types (#208) * Add tests of final class constant modifier, update metadata (https://wiki.php.net/rfc/final_class_const for php 8.1) * Support proposed php 8.1 intersection types (https://wiki.php.net/rfc/pure-intersection-types) * Allow using any modifier on any class element in metadata
show more ...
|
#
f8248ff8 |
| 14-May-2021 |
Tyson Andre |
Support doc comments for php 8.1 code, combine equivalent switch cases (#204) * Support parsing php 8.1 enum doc comments Requires https://github.com/php/php-src/pull/6984 (php
Support doc comments for php 8.1 code, combine equivalent switch cases (#204) * Support parsing php 8.1 enum doc comments Requires https://github.com/php/php-src/pull/6984 (php 8.1 has no public alphas yet) * Combine equivalent case statements in generated code
show more ...
|
#
b09570df |
| 17-Apr-2021 |
Tyson Andre |
Support php 8.1 never RFC (#199) https://wiki.php.net/rfc/noreturn_type
|
#
28f5201f |
| 05-Apr-2021 |
Tyson Andre |
Support php 8.1 enums (#197) * Support php 8.1 enums * Test with travis and php 8.0, again * AST_ENUM_CASE can have attributes * Set `type` property of `AST_CLASS`
Support php 8.1 enums (#197) * Support php 8.1 enums * Test with travis and php 8.0, again * AST_ENUM_CASE can have attributes * Set `type` property of `AST_CLASS` iff ast version 85+ (iff === if and only if) * Add AST_CLASS's type in version 85+ prior to php 8.1 * [skip ci] Document support for php 8.1 enums
show more ...
|
#
21057fb6 |
| 04-Sep-2020 |
Tyson Andre |
Support php 8.0 grouped attributes with `#[` (#173) The choice of null AST_ARG_LIST seems deliberate in php-src, so that zend_ast_export_attribute_group can emit a different representati
Support php 8.0 grouped attributes with `#[` (#173) The choice of null AST_ARG_LIST seems deliberate in php-src, so that zend_ast_export_attribute_group can emit a different representation for `attr()` and `attr`
show more ...
|
#
faf53973 |
| 02-Aug-2020 |
Tyson Andre |
Support the php 8.0 nullsafe operator(?->) (#169)
|
#
c6cc7b1c |
| 31-Jul-2020 |
Tyson Andre |
Support php 8.0 named parameters (#166) https://wiki.php.net/rfc/named_params is accepted. This works when built against the PR implementing that RFC. Also, amend attributes so
Support php 8.0 named parameters (#166) https://wiki.php.net/rfc/named_params is accepted. This works when built against the PR implementing that RFC. Also, amend attributes so that tests pass on php 8.0-dev (they will be amended again based on the planned vote)
show more ...
|
#
49ebd1f8 |
| 31-Jul-2020 |
Tyson Andre |
Support PARAM_MODIFIER_PUBLIC on AST_PARAM nodes (#168) Fixes #167
|
#
1b5d767d |
| 11-Jul-2020 |
Tyson Andre |
Support match expression v2 rfc (#161) The naming is based on `switch` statements. Note that even if statement blocks were supported after a future RFC those would probably be consid
Support match expression v2 rfc (#161) The naming is based on `switch` statements. Note that even if statement blocks were supported after a future RFC those would probably be considered block **expressions**, hence the `expr` name for `AST_MATCH_ARM`. * Regenerate ast_stub.php * Add missing files to package.xml
show more ...
|
#
85b6bf88 |
| 14-Jun-2020 |
Tyson Andre |
Support php 8.0 "Constructor Promotion" and attributes (#160) - attributes are only available in AST version 80+, and will be null before php 8.0
|
#
66de07d2 |
| 06-Jun-2020 |
Tyson Andre |
Revert "Support php 8.0 "Constructor Promotion" and attributes" This reverts commit b0370e632aad7b2c6feadaa8ea4610e5e0c055c6.
|
#
b0370e63 |
| 30-May-2020 |
Tyson Andre |
Support php 8.0 "Constructor Promotion" and attributes Because AST_CLASS_CONST_DECL is a list of nodes, don't add the key "attributes" to the hash table in older AST versions. A
Support php 8.0 "Constructor Promotion" and attributes Because AST_CLASS_CONST_DECL is a list of nodes, don't add the key "attributes" to the hash table in older AST versions. Add visibility modifiers to AST_PARAM, but only in php 8.0+. MODIFIER_PUBLIC and PARAM_REF are the same value in php 7.4.
show more ...
|
#
f5532bf4 |
| 24-May-2020 |
Tyson Andre |
Support php 8.0's mixed type (#156) Fixes #154 - We've preferred AST versions that are multiples of 10 for previous releases.
|
#
5e3ebe21 |
| 22-Feb-2020 |
Tyson Andre |
Support parsing php 8.0 TYPE_STATIC, add test of $x::class (#150) Test ::class on objects Support parsing php 8.0 TYPE_STATIC Fixes #149
|
Revision tags: v1.0.5 |
|
#
7883996d |
| 23-Nov-2019 |
Tyson Andre |
Support ast\flags\TYPE_FALSE for union types. (#140) AST_CAST already has some impossible flags such as TYPE_ITERABLE. This was overlooked when adding AST_TYPE_UNION
|
Revision tags: v1.0.4 |
|
#
2040325f |
| 27-Oct-2019 |
Tyson Andre |
Support PHP 8.0 Union Type RFC
|
Revision tags: v1.0.3 |
|
#
aa3f513e |
| 27-Jul-2019 |
Tyson Andre |
Add ast\flags\PARENTHESIZED_CONDITIONAL for php 7.4 This will make it easier for static analyzers to warn about the lack of parenthesis, to format code from ASTs, etc.
|
#
5ed59317 |
| 21-Jul-2019 |
Tyson Andre |
Add DIM_ALTERNATIVE_SYNTAX flag for 7.4's $x{$i} Fixes #128 Fix ast\kind_uses_flags(ast\AST_ARROW_FUNC) in php < 7.4
|
Revision tags: v1.0.2 |
|
#
ae71ecc3 |
| 04-May-2019 |
Tyson Andre |
Support AST_ARROW_FUNC, add tests
|
Revision tags: v1.0.1 |
|
#
fb1be834 |
| 30-Jan-2019 |
Tyson Andre |
Add AST_CLASS_NAME in AST version 70 (#111) Add AST_CLASS_NAME in AST version 70 Fixes #109 Tests pass with a local PHP 7.4 installation
|