github nikic/PHP-Parser v4.6.0
PHP-Parser 4.6.0

latest releases: v4.19.4, v4.19.3, v5.3.0...
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.

Don't miss a new PHP-Parser release

NewReleases is sending notifications on new releases.