Releases: xp-framework/ast
Releases · xp-framework/ast
8.1.0: Readonly classes
8.0.1: Namespace keyword fix
- Fixed resolving types starting with
namespace
keyword (examples 4 and
5 in https://www.php.net/manual/en/language.namespaces.nsconstants.php)
(@thekid)
8.0.0: Annotations and comments rework
This major release promotes annotations and comments to Node subclasses, making it easy to implement different emitter scenarios for them. For example, classes to be used with the XP Framework will have meta information attached to them, while others will not, reducing their dependencies.
- Merged PR #35: Support static closures (
static fn() => ...
) - @thekid - Implemented xp-framework/rfc#341: Drop XP 9 compatibility - @thekid
- Merged PR #34: Refactor annotations from associative arrays to instances
of thelang.ast.nodes.Annotations
class.
(@thekid) - Merged PR #33: Refactor apidoc comments from bare strings to instances
of thelang.ast.nodes.Comment
class.
(@thekid)
7.7.2: PHP 8.2 fixes
- Fixed PHP 8.2 warning about dynamic properties - @thekid
7.7.1: XP 11 compatibility
- Made library compatible with XP 11 - @thekid
7.7.0: Callable new syntax
7.6.2: Grouped use parsing fix
7.6.1: Use statement fixes
7.6.0: Readonly properties
- Merged PR #30: Add support for readonly properties, to both property
declarations and constructor argument promotion - available in PHP 8.1
See https://wiki.php.net/rfc/readonly_properties_v2
(@thekid)
7.5.1: Switch statement fix
- Fixed Expected ":", have "::" in switch for class constants - @thekid