Skip to content

Commit ae59794

Browse files
committed
Release PHP-Parser 5.5.0
1 parent 4964f8d commit ae59794

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
Version 5.5.0 (2025-05-31)
2+
--------------------------
3+
4+
### Added
5+
6+
* [8.5] Added support for attributes on constants. `Stmt\Const_` now has an `attrGroups` subnode.
7+
* Added `weakReferences` option to `NodeConnectingVisitor` and `ParentConnectingVisitor`. This
8+
will create the parent/next/prev references as WeakReferences, to avoid making the AST cyclic
9+
and thus increasing GC pressure.
10+
11+
### Changed
12+
13+
* Attributes on parameters are now printed on separate lines if the pretty printer target version
14+
is PHP 7.4 or older (which is the default). This allows them to be interpreted as comments,
15+
instead of causing a parse error. Specify a target version of PHP 8.0 or newer to restore the
16+
previous behavior.
17+
118
Version 5.4.0 (2024-12-30)
219
--------------------------
320

0 commit comments

Comments
 (0)