v4.10.0
版本发布时间: 2020-09-19 22:54:16
nikic/PHP-Parser最新发布版本:v5.3.0(2024-09-29 21:59:38)
Added
- [PHP 8.0] Added support for attributes. These are represented using a new
AttributeGroup
node containingAttribute
nodes. A newattrGroups
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
andParam
. - [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.