Skip to content

[PropertyAccess] BC break due to a modified getter calling logic #37052

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

Closed
1ed opened this issue Jun 1, 2020 · 1 comment
Closed

[PropertyAccess] BC break due to a modified getter calling logic #37052

1ed opened this issue Jun 1, 2020 · 1 comment

Comments

@1ed
Copy link
Contributor

1ed commented Jun 1, 2020

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.

@norkunas
Copy link
Contributor

norkunas commented Jun 2, 2020

We also hit this.

nicolas-grekas added a commit that referenced this issue Jun 7, 2020
This PR was merged into the 5.1 branch.

Discussion
----------

[PropertyAccess] Fix getter call order BC

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #37052
| License       | MIT
| Doc PR        | -

Property Accessor breaks BC due to a change in the order of calling the getters, see #37052

Commits
-------

8cf8068 [PropertyAccess] Fix getter call order BC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants