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 | ObjectDeclarations::getClassProperties(): add support for readonly classes #367

Merged
merged 1 commit into from
Oct 15, 2022

Commits on Oct 15, 2022

  1. PHP 8.2 | ObjectDeclarations::getClassProperties(): add support for r…

    …eadonly classes
    
    PHP 8.2 introduces `readonly` classes. The `readonly` keyword can be combined with the `abstract` or `final` keyword. See: https://3v4l.org/VIXgD
    
    Includes unit tests.
    
    Note: a similar PR has been pulled upstream - see squizlabs/PHP_CodeSniffer 3686.
    
    Ref:
    * https://wiki.php.net/rfc/readonly_classes
    jrfnl committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    770fcfb View commit details
    Browse the repository at this point in the history