Skip to content

PHP-Parser 4.2.0

Choose a tag to compare

@nikic nikic released this 12 Jan 16:34
· 643 commits to master since this release

Added

  • [PHP 7.4] Add support for typed properties through a new type subnode of Stmt\Property. Additionally Builder\Property now has a setType() method. (#567)
  • Add kind attribute to Cast\Double_, which allows to distinguish between (float), (double) and (real). The form of the cast will be preserved by the pretty printer. (#565)

Fixed

  • Remove assertion when pretty printing anonymous class with a name (#554).