All Versions
64
Latest Version
Avg Release Cycle
43 days
Latest Release
590 days ago

Changelog History
Page 3

  • v4.7.0 Changes

    July 25, 2020

    โž• Added

    • โž• Add ParentConnectingVisitor and NodeConnectingVisitor classes.
    • ๐Ÿ‘ [PHP 8.0] Added support for match expressions. These are represented using a new Expr\Match_ containing MatchArms.
    • ๐Ÿ‘ [PHP 8.0] Added support for trailing comma in closure use lists.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed missing error for unterminated comment with trailing newline (#688).
    • Compatibility with PHP 8.0 has been restored: Namespaced names are now always represented by T_NAME_* tokens, using emulationg on older PHP versions. Full support for reserved keywords in namespaced names is not yet present.
  • v4.6.0 Changes

    July 02, 2020

    โž• 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.
  • v4.5.0 Changes

    June 03, 2020

    โž• Added

    • ๐Ÿ“œ [PHP 8.0] Added support for the mixed type. This means mixed types are now parsed as an Identifier rather than a Name.
    • ๐Ÿ‘ป [PHP 8.0] Added support for catching without capturing the exception. This means that Catch_::$var may now be null.
  • v4.4.0 Changes

    April 10, 2020

    โž• Added

    • โž• Added support for passing union types in builders.
    • โž• Added end line, token position and file position information for comments.
    • โž• Added getProperty() method to ClassLike nodes.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed generation of invalid code when using the formatting preserving pretty printer, and inserting code next to certain nop statements. The formatting is still ugly though.
    • getDocComment() no longer requires that the very last comment before a node be a doc comment. There may not be non-doc comments between the doc comment and the declaration.
    • ๐Ÿ‘ Allowed arbitrary expressions in isset() and list(), rather than just variables. In particular, this allows isset(($x)), which is legal PHP code.
    • [PHP 8.0] Add support for variable syntax tweaks RFC.
  • v4.3.0 Changes

    November 08, 2019

    โž• Added

    • ๐Ÿ‘ [PHP 8.0] Added support for union types using a new UnionType node.
  • v4.2.5 Changes

    October 25, 2019

    ๐Ÿ”„ Changed

    • ๐Ÿ“š Tests and documentation are no longer included in source archives. They can still be accessed by cloning the repository.
    • ๐Ÿ“œ php-yacc is now used to generate the parser. This has no impact on users of the library.
  • v4.2.4 Changes

    September 01, 2019

    โž• Added

    • โž• Added getProperties(), getConstants() and getTraitUses() to ClassLike. (#629, #630)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed flexible heredoc emulation to check for digits after the end label. This synchronizes behavior with the upcoming PHP 7.3.10 release.
  • v4.2.3 Changes

    August 12, 2019

    โž• Added

    • ๐Ÿ“œ [PHP 7.4] Add support for numeric literal separators. (#615)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed resolution of return types for arrow functions. (#613)
    • ๐Ÿ›  Fixed compatibility with PHP 7.4.
  • v4.2.2 Changes

    May 25, 2019

    โž• Added

    • ๐Ÿ“œ [PHP 7.4] Add support for arrow functions using a new Expr\ArrowFunction node. (#602)
    • ๐Ÿ“œ [PHP 7.4] Add support for array spreads, using a new unpack subnode on ArrayItem. (#609)
    • โž• Added support for inserting into empty list nodes in the formatting preserving pretty printer.

    ๐Ÿ”„ Changed

    • ๐Ÿ–จ php-parse will now print messages to stderr, so that stdout only contains the actual result of the operation (such as a JSON dump). (#605)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed attribute assignment for zero-length nop statements, and a related assertion failure in the formatting-preserving pretty printer. (#589)
  • v4.2.1 Changes

    February 16, 2019

    โž• Added

    • ๐Ÿ“œ [PHP 7.4] Add support for ??= operator through a new AssignOp\Coalesce node. (#575)