Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Form] accept floats for input="string" in NumberType#32125
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
yceruto left a comment
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.
Thanks!!
src/Symfony/Component/Form/Extension/Core/DataTransformer/StringToFloatTransformer.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
fancyweb commentedJun 21, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Shouldn't we trigger a deprecation here so users actually uses string instead of floats in their entities? |
xabbuh commentedJun 21, 2019
I have updated the code a bit. The changes made for the This allows us to deprecate the behaviour with a better message in 4.4 as suggested in#32125 (comment) and we do not need to weaken the |
Uh oh!
There was an error while loading.Please reload this page.
xabbuh commentedJun 21, 2019
…ype (xabbuh)This PR was merged into the 4.4 branch.Discussion----------[Form] deprecate int/float for string input in NumberType| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | yes| Tests pass? | yes| Fixed tickets |#32125 (comment)| License | MIT| Doc PR |Commits-------d8c008a deprecate int/float for string input in NumberType
fabpot commentedJun 22, 2019
Thank you@xabbuh. |
…buh)This PR was merged into the 4.3 branch.Discussion----------[Form] accept floats for input="string" in NumberType| Q | A| ------------- | ---| Branch? | 4.3| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#31905,#32124| License | MIT| Doc PR |Commits-------2abf855 accept floats for input="string" in NumberType
Uh oh!
There was an error while loading.Please reload this page.