-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Backport] Use the new json serializer which throws an error when failing #20271
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
[Backport] Use the new json serializer which throws an error when failing #20271
Conversation
code formatting Backwards compatibility fix use JSON_HEX_TAG option for not breaking things use new serializer instead of json_encode use correct serializer in test declare return type use serializer updated unit testing, now uses serializer removed space declare strict type improved comment Test new serializer Test for greater than and lesser than symbol, required by JSON_HEX_TAG option split comment for readability Declare strict type on test Use di to inject cleanup curly brackets code cleanup removed empty phpdoc Fix BC
|
Hi @quisse. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
|
Hi @VladimirZaets, thank you for the review. |
|
Where can I find/reproduce the breaking test? Can't find it |
|
Hi @quisse, thank you for your contribution! |
|
Hi @quisse. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Original Pull Request
#16154
Description
Use the new serializer which throws an error when json_encoding fails.
Fixed Issues (if relevant)
Contribution checklist