Download Latest Version PHP-Parser 5.5.0 source code.tar.gz (149.2 kB)
Email in envelope

Get an email when there's a new version of PHP Parser

Home / v5.5.0
Name Modified Size InfoDownloads / 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 an attrGroups subnode.
  • Added weakReferences option to NodeConnectingVisitor and ParentConnectingVisitor. 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.
Source: README.md, updated 2025-05-31