-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
NumberToLocalizedStringTransformer incorrect reverseTransform #28500
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
Comments
I was not able to reproduce your issue. What value is returned by |
|
I forget say, that I use php version 7.2.9. But same with php 7.0 |
Can you please dump the values of the |
dump
|
I can confirm the issue when the Status: Reviewed |
see #28540 |
…bbuh) This PR was merged into the 2.8 branch. Discussion ---------- [Intl] parse numbers terminated with decimal separator | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #28500 | License | MIT | Doc PR | Commits ------- 4225f36 parse numbers terminated with decimal separator
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 3.4.15
PHP 7.2
Description
Unable to reverse value for property path "foo": The number contains unrecognized characters: "."
when valeu equal '239.' or other string contains number with dot in end.
It was happend in class Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer when call method reverseTransform
How to reproduce
OR
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: