Version 4.4.0

Added

  • Added support for passing union types in builders.
  • Added end line, token position and file position information for comments.
  • Added getProperty() method to ClassLike nodes.
  • [PHP 8.0] Add support for variable syntax tweaks RFC.

Fixed

  • Fixed generation of invalid code when using the formatting preserving pretty printer, and inserting code next to certain nop statements. The formatting is still ugly though.
  • getDocComment() no longer requires that the very last comment before a node be a doc comment. There may not be non-doc comments between the doc comment and the declaration.
  • Allowed arbitrary expressions in isset() and list(), rather than just variables. In particular, this allows isset(($x)), which is legal PHP code.

项目简介

🚀 Github 镜像仓库 🚀

源项目地址

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

发行版本 70

PHP-Parser 4.13.0

全部发行版

贡献者 127

全部贡献者

开发语言

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