Skip to content
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

handle all Throwable instances during serialization #2105

Merged
merged 1 commit into from
Mar 4, 2020

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Mar 3, 2020

fixes #2095, replaces #2104

@xabbuh xabbuh merged commit 6fc5595 into FriendsOfSymfony:2.7 Mar 4, 2020
@xabbuh xabbuh deleted the issue-2104 branch March 4, 2020 09:35
{
$showMessage = $this->messagesMap->resolveException($exception);
$showMessage = $this->messagesMap->resolveThrowable($throwable);
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't find the resolveThrowable() method here:
https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/Util/ExceptionValueMap.php

How it should work?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's only present in 2.x: https://github.com/FriendsOfSymfony/FOSRestBundle/blob/2.7/Util/ExceptionValueMap.php

The code for 3.0 was fixed in #2112.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants