Closed
Description
Symfony version(s) affected: 5.1.0
Description
I think there is a BC break in the PropertyAccess component due to the changes were introduces in #30704 (I think). The original logic is in https://github.com/symfony/symfony/blob/v5.0.9/src/Symfony/Component/PropertyAccess/PropertyAccessor.php#L470-L520. Maybe it's an edge case, but it breaks out app.
How to reproduce
See #37053, the tests green on 5.0, but without the patch failing on. 5.1
Possible Solution
See #37053 for a naive solution.