PHP Parser v4.10.0 Release Notes

Release Date: 2020-09-19 // about 1 year ago
  • โž• Added

    • ๐Ÿ‘ [PHP 8.0] Added support for attributes. These are represented using a new AttributeGroup node containing Attribute nodes. A new attrGroups subnode is available on all node types that support attributes, i.e. Stmt\Class_, Stmt\Trait_, Stmt\Interface_, Stmt\Function_, Stmt\ClassMethod, Stmt\ClassConst, Stmt\Property, Expr\Closure, Expr\ArrowFunction and Param.
    • ๐Ÿ‘ [PHP 8.0] Added support for nullsafe properties inside interpolated strings, in line with an upstream change.

    ๐Ÿ›  Fixed

    • ๐Ÿ‘Œ Improved compatibility with other libraries that use forward compatibility defines for PHP tokens.