Skip to content

PHP-Parser 4.6.0

Compare
Choose a tag to compare
@nikic nikic released this 02 Jul 17:17
· 435 commits to master since this release

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.