Skip to content

PHP-Parser 4.10.5

Compare
Choose a tag to compare
@nikic nikic released this 03 May 19:17
· 394 commits to master since this release

Added

  • [PHP 8.1] Added support for enums. These are represented using the Stmt\Enum_ and Stmt\EnumCase nodes.
  • [PHP 8.1] Added support for never type. This type will now be returned as an Identifier rather than Name.
  • Added ClassConst builder.

Changed

  • Non-UTF-8 code units in strings will now be hex-encoded.

Fixed

  • Fixed precedence of arrow functions.