Skip to content

PHP-Parser 4.0.1

Choose a tag to compare

@nikic nikic released this 25 Mar 17:36
· 690 commits to master since this release

Added

  • [PHP 7.3] Added support for trailing commas in function calls.
  • [PHP 7.3] Added support for by-reference array destructuring.
  • Added checks to node traverser to prevent replacing a statement with an expression or vice versa. This should prevent common mistakes in the implementation of node visitors.
  • Added the following methods to BuilderFactory, to simplify creation of expressions:
    • funcCall()
    • methodCall()
    • staticCall()
    • new()
    • constFetch()
    • classConstFetch()