Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 19, 2023

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.

Support for readonly classes was previously already added to the ObjectDeclarations::getClassProperties() in PR #367.

Refs:

…adonly 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.

Support for readonly classes was previously already added to the `ObjectDeclarations::getClassProperties()` in PR 367.

Refs:
* https://wiki.php.net/rfc/readonly_classes
* squizlabs/PHP_CodeSniffer 3686.
@jrfnl jrfnl added this to the 1.0.x Next milestone May 19, 2023
@jrfnl jrfnl merged commit 40eb07e into develop May 19, 2023
@jrfnl jrfnl deleted the backcompat/bcfile-getclassproperties-add-support-readonly branch May 19, 2023 06:17
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.

1 participant