Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
PHP-Parser 5.5.0 source code.tar.gz | 2025-05-31 | 149.2 kB | |
PHP-Parser 5.5.0 source code.zip | 2025-05-31 | 271.7 kB | |
README.md | 2025-05-31 | 656 Bytes | |
Totals: 3 Items | 421.6 kB | 7 |
Added
- [8.5] Added support for attributes on constants.
Stmt\Const_
now has anattrGroups
subnode. - Added
weakReferences
option toNodeConnectingVisitor
andParentConnectingVisitor
. This will create the parent/next/prev references as WeakReferences, to avoid making the AST cyclic and thus increasing GC pressure.
Changed
- Attributes on parameters are now printed on separate lines if the pretty printer target version is PHP 7.4 or older (which is the default). This allows them to be interpreted as comments, instead of causing a parse error. Specify a target version of PHP 8.0 or newer to restore the previous behavior.