-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Messenger] Fix JSON deserialization of ErrorDetailsStamp and normalization of FlattenException::$statusText #39004
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
[Messenger] Fix JSON deserialization of ErrorDetailsStamp and normalization of FlattenException::$statusText #39004
Conversation
@Nyholm you said in #38792 (comment) that we don't use
What should I do? |
@yceruto could you have a look at this PR please? |
There is a Did you find a new problem after this fix #38941? |
src/Symfony/Component/Messenger/Tests/Stamp/ErrorDetailsStampTest.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are still failing, please take a look. Thanks!
src/Symfony/Component/Messenger/Tests/Command/FailedMessagesShowCommandTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Messenger/Tests/Command/FailedMessagesShowCommandTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Messenger/Tests/Command/FailedMessagesShowCommandTest.php
Outdated
Show resolved
Hide resolved
*/ | ||
public function __construct( | ||
string $exceptionClass, | ||
$exceptionCode, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was documented as int|mixed
, probably for the same reason as vimeo/psalm#3175
…zation of FlattenException::$statusText
b5f9889
to
9af554c
Compare
Thank you @Jean85. |
WIPThis is now complete and, thanks to @yceruto, I've fixed two bugs in this PR:ErrorDetailsStamp
couldn't be (de)serialized properly with that constructor argumentFlattenException::$statusText
wasn't (de)normalized