v4.6.0
版本发布时间: 2020-07-03 01:17:41
nikic/PHP-Parser最新发布版本:v5.3.0(2024-09-29 21:59:38)
Added
- [PHP 8.0] Added support for trailing commas in parameter lists.
- [PHP 8.0] Added support for constructor promotion. The parameter visibility is stored in
Node\Param::$flags
.
Fixed
- Comment tokens now always follow the PHP 8 interpretation, and do not include trailing whitespace.
- As a result of the previous change, some whitespace issues when inserting a statement into a method containing only a comment, and using the formatting-preserving pretty printer, have been resolved.