Closed
Description
Symfony version(s) affected
7.2.0
Description
In PHP 8.4 we have virtual properties and asymmetric visibility.
PropertyAccess considers the following properties writable, although they are not:
final class Foo
{
public private(set) bool $public_private_set;
public protected(set) bool $public_protected_set;
public bool $virtual_no_set_hook { get => true; }
}
The issue has already been fixed for the PropertyInfo component in #58556 via 520e31b. However, PropertyAccess is still not working correctly, see my reproducer (I've updated it to 7.2.x).
How to reproduce
https://github.com/vudaltsov/symfony-property-access-php84
Possible Solution
No response
Additional Context
No response