tolerant-php-parser
tolerant-php-parser copied to clipboard
Support parsing of PHP 8.4 property hooks
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