-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PropertyInfo] PropertyInfo is not compatible with PHP 8.4 property hooks #58556
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
Comments
Also related to #54180. |
Thank you for testing early with new versions of PHP. This way, we can make sure, Symfony is ready when PHP 8.4 is released.
No.
Sounds good. PR welcome, I suppose. |
The problem is that a user with PHP 8.4 can install PropertyInfo or other downstream libraries without any problem only to find out later that it does not work with the new PHP 8.4 features. Here's what comes to my mind. Let's say, PropertyInfo requires
I'll try my best to find some time :) |
Let's wait a little bit. Meanwhile, the failing tests might be added. |
Sorry, if I cut you off there. I see that you're very passionate about discussing this topic. For me, this is a topic that I consider settled for more than ten years that we use these strategy on constraints. You've opened this as a bug report to discuss an incompatibility. At least I hope that this was your intention. So please let's focus on that very issue. If you really really really want to discuss version constraints all over again, please research old discussions on that topic, ask yourself if you really have new insights for that discussion and, if that is the case, open a new issue dedicated to that topic. Don't let the discussion about your imminent problem be derailed by something that you've called a "side note". |
That would indeed be a welcomed addition. Crossing fingers. 🤞🏻 🙂 |
PHP 8.4 has been released today. Sadly, |
…e whether a property is writable (xabbuh) This PR was merged into the 5.4 branch. Discussion ---------- [PropertyInfo] consider write property visibility to decide whether a property is writable | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | part of #58556 | License | MIT Commits ------- 49126e1 consider write property visibility to decide whether a property is writable
…ity and Virtual Properties (xabbuh, pan93412) This PR was merged into the 5.4 branch. Discussion ---------- [PropertyInfo] Fix write visibility for Asymmetric Visibility and Virtual Properties | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #58556 | License | MIT - [ ] Rebase after #58959 and #58962 is merged. Commits ------- 964bf1f [PropertyInfo] Fix write visibility for Asymmetric Visibility and Virtual Properties
Symfony version(s) affected
7.1.4
Description
In PHP 8.4 we'll have virtual properties and asymmetric visibility.
PropertyInfo considers the following properties writable, although they are not:
A side note. Many Symfony components optimistically state that they are compatible with all future PHP versions (for instance, the PropertyInfo component has
"require": { "php": ">=8.2" }
in itscomposer.json
). However, this case shows that they are not and cannot be. I've discussed, whether it is a BC break on PHP's side or it isn't, see https://externals.io/message/125772. Symfony should probably reconsider it's PHP constraints.How to reproduce
https://github.com/vudaltsov/symfony-property-access-php84
Possible Solution
In PHP 8.4 a property is writable if
See https://externals.io/message/125740.
Additional Context
No response
The text was updated successfully, but these errors were encountered: