Skip to content

[Serializer] forward exceptions caught in the AbstractObjectNormalizer #57433

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

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jun 17, 2024

Q A
Branch? 7.1
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #57427
License MIT

@xabbuh
Copy link
Member Author

xabbuh commented Jun 17, 2024

this makes sure that validateAndDenormalize() behaves the same way as before the introduction of the TypeInfo component (see the legacy implementation in validateAndDenormalizeLegacy()

@OskarStark OskarStark changed the title [Serializer] forward exceptions caught in the AbstractObjectNormalizer [Serializer] forward exceptions caught in the AbstractObjectNormalizer Jun 18, 2024
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small test case? 🙏

@HypeMC
Copy link
Contributor

HypeMC commented Jun 27, 2024

@nicolas-grekas @xabbuh See #57559, the test passes on 5.4, 6.4 and 7.0, but fails on 7.1. When I apply the changes made in this PR, it passes on 7.1 as well.

@xabbuh
Copy link
Member Author

xabbuh commented Jun 27, 2024

@HypeMC 👍 great, I have cherry-picked your commit here too

nicolas-grekas added a commit that referenced this pull request Jun 28, 2024
…ct (HypeMC)

This PR was merged into the 5.4 branch.

Discussion
----------

[Serializer] Check if exception message in test is correct

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #57427 (just test)
| License       | MIT

This is a test for #57433

Commits
-------

2fc8789 [Serializer] Check if exception message in test is correct
@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit 8350e87 into symfony:7.1 Jun 28, 2024
6 of 10 checks passed
@fabpot fabpot mentioned this pull request Jun 28, 2024
@xabbuh xabbuh deleted the issue-57427 branch June 28, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants