Skip to content
New issue

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

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

Already on GitHub? # to your account

PHP 8.2 | Scopes::isOOConstant(): add support for constants in traits #366

Merged
merged 1 commit into from
Oct 15, 2022

Commits on Oct 15, 2022

  1. PHP 8.2 | Scopes::isOOConstant(): add support for constants in traits

    As of PHP 8.2, it is allowed to declare constants in traits.
    
    This commit adds support for detecting whether a constant declared using the `const` keyword is within an trait structure to the `Scopes::isOOConstant()` method.
    
    Includes adding the `T_TRAIT` token to the `Collections::ooConstantScopes()` token array.
    
    Refs:
    * https://wiki.php.net/rfc/constants_in_traits
    jrfnl committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    67f4898 View commit details
    Browse the repository at this point in the history