-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] Correctly round model with PercentType and add a rounding_mode option #35729
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
Conversation
edited
Q | A |
---|---|
Branch? | master |
Bug fix? | yes |
New feature? | yes |
Deprecations? | no |
Tickets | Fix #35296 |
License | MIT |
Doc PR | symfony/symfony-docs#13138 |
24eb4c3
to
8b3de3c
Compare
...ymfony/Component/Form/Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php
Show resolved
Hide resolved
@nicolas-grekas I made the PR on master because I added an option But I kinda consider as a bug the fact the value is not rounded in |
If the PR #35781 is accepted, I'll need to include the same fix. |
d07e3c9
to
e564a8d
Compare
@nicolas-grekas @xabbuh Hi ! Is something missing with this PR ? :) |
e564a8d
to
d97565d
Compare
Thank you @VincentLanglet. |
This PR was merged into the master branch. Discussion ---------- Add doc for rounding_mode Related to symfony/symfony#35729 Commits ------- fcc8641 Add doc for rounding_mode