Skip to content

PHP-Parser 4.8.0

Choose a tag to compare

@nikic nikic released this 09 Aug 10:24
· 511 commits to master since this release

Added

  • [PHP 8.0] Added support for nullsafe operator, represented using the new Expr\NullsafePropertyFetch and Expr\NullsafeMethodCall nodes.
  • Added phpVersion option to the emulative lexer, which allows controlling the target version to emulate (defaults to the latest available, currently PHP 8.0). This is useful to parse code that uses reserved keywords from newer PHP versions as identifiers.