Version 4.9.0

Added

  • [PHP 8.0] Added support for named arguments, represented using a new name subnode on Arg.
  • [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 using Stmt\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.

项目简介

🚀 Github 镜像仓库 🚀

源项目地址

https://github.com/nikic/PHP-Parser

发行版本 70

PHP-Parser 4.13.0

全部发行版

贡献者 127

全部贡献者

开发语言

  • PHP 90.8 %
  • Yacc 9.2 %
  • Shell 0.0 %