tolerant-php-parser icon indicating copy to clipboard operation
tolerant-php-parser copied to clipboard

Support parsing of PHP 8.4 property hooks

Open TysonAndre opened this issue 1 year ago • 0 comments
trafficstars

As part of this, stricten the parsing of property names and use a narrower syntax but reuse AssignmentExpression for backwards compatibility of applications that originally used tolerant-php-parser's result of parseExpression.

References: https://wiki.php.net/rfc/property-hooks and the linked php-src PR's zend_language_parser.y

https://wiki.php.net/rfc/property-hooks#abbreviated_syntax https://wiki.php.net/rfc/property-hooks#interaction_with_constructor_property_promotion

TysonAndre avatar Aug 11 '24 16:08 TysonAndre