Skip to content

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

Merged
merged 4 commits into from
Nov 12, 2022
Merged

Document readonly classes #1996

merged 4 commits into from
Nov 12, 2022

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Nov 11, 2022

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>
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a paragraph :)

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Girgias Girgias merged commit 5126704 into php:master Nov 12, 2022
@Girgias Girgias deleted the readonly-class branch November 12, 2022 12:58
@Girgias Girgias added this to the PHP 8.2 milestone Nov 12, 2022
claudepache pushed a commit to claudepache/php-doc-en that referenced this pull request Jun 1, 2023
Co-authored-by: Yoshinari Takaoka <[email protected]>
Co-authored-by: Christoph M. Becker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants