Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support parsing of PHP 8.4 property hooks #411

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Aug 11, 2024

  1. Support parsing of PHP 8.4 property hooks

    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 committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    1e4a27a View commit details
    Browse the repository at this point in the history