Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
EnableJSON_PRESERVE_ZERO_FRACTION
injsonRequest
method#59769
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
carsonbot commentedFeb 13, 2025
Hey! Thanks for your PR. You are targeting branch "7.3" but it seems your PR description refers to branch "7.2". Cheers! Carsonbot |
JSON_PRESERVE_ZERO_FRACTION
injsonRequest
method961c9ae
tob8fcd13
Comparethis needs a regression tests (which would also help understand which issue is being fixed) |
test added |
Will be cast to int 0? Or do you mean cast to int 10 in the pr description? |
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.
I suppose we should merge this in 6.4
JSON_PRESERVE_ZERO_FRACTION
injsonRequest
methodJSON_PRESERVE_ZERO_FRACTION
injsonRequest
method
10, sorry. |
b066b65
to535953e
CompareThank you@raffaelecarelle. |
3062f05
intosymfony:6.4Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Updated the jsonRequest method to use JSON_PRESERVE_ZERO_FRACTION when encoding parameters.
This avoid unintended cast to int.
Test case:
"cost" will be cast to int
10