-
Notifications
You must be signed in to change notification settings - Fork 791
Document readonly classes #1996
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
Conversation
38d261a
to
abdc94c
Compare
Moreover, it is impossible to add support for them by using the | ||
<code>#[AllowDynamicProperties]</code> attribute. Attempting to do so | ||
will trigger a compile-time error. | ||
</para> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe you could mention that readonly classes can extend only readonly classes, and non-readonly classes cannot extend readonly ones either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a paragraph :)
Co-authored-by: Yoshinari Takaoka <[email protected]>
Co-authored-by: Christoph M. Becker <[email protected]>
7fee58f
to
3b6b054
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Co-authored-by: Yoshinari Takaoka <[email protected]> Co-authored-by: Christoph M. Becker <[email protected]>
RFC: https://wiki.php.net/rfc/readonly_classes