-
Notifications
You must be signed in to change notification settings - Fork 239
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
Support for readonly classes #559
Comments
@stof anyone working on the PHP8.2? Don't want to duplicate work, but I can pick these up. |
Was playing around with this idea. Essentially make the underlying "testing" class be capable of being readonly. Can't be sure if this is a good idea, just playing with it. https://gist.github.com/kschatzle/5394a3abc427659d21ef6f854e01c0f6 |
@kschatzle not that I'm aware off. |
Note that the initial compat with PHP 8.2 might be to have a clear error message saying that doubling a readonly class is not supported yet, in case supporting this case require more time. |
Ok, yeah, I saw some isFinal checks in various places. I could see a similar |
Yeah I've not seen any activity on it so go ahead if you have the time |
Initial support as requested. #564 |
https://wiki.php.net/rfc/readonly_classes
The text was updated successfully, but these errors were encountered: