PHP Parser v4.6.0 Release Notes
Release Date: 2020-07-02 // almost 4 years ago-
โ 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.