v4.9.0
版本发布时间: 2020-08-19 03:51:35
nikic/PHP-Parser最新发布版本:v5.3.0(2024-09-29 21:59:38)
Added
- [PHP 8.0] Added support for named arguments, represented using a new
name
subnode onArg
. - [PHP 8.0] Added support for static return type, represented like a normal class return type.
- [PHP 8.0] Added support for throw expression, represented using a new
Expr\Throw_
node. For backwards compatibility reasons, throw expressions in statement context continue to be represented usingStmt\Throw_
. - [PHP 8.0] Added support for keywords as parts of namespaced names.
Fixed
- Emit parentheses for class constant fetch with complex left-hand-side.
- Emit parentheses for new/instanceof on complex class expression.