Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 15, 2022

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:

…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 jrfnl added this to the 1.0.0-alpha4 milestone Oct 15, 2022
@jrfnl jrfnl merged commit bdc9d70 into develop Oct 15, 2022
@jrfnl jrfnl deleted the php-8.2/add-support-readonly-classes branch October 15, 2022 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants