Skip to content

[Form] Handle all case variants of "nan" when parsing a number #29343

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

Merged
merged 2 commits into from
Nov 29, 2018

Conversation

mwhudson
Copy link
Contributor

@mwhudson mwhudson commented Nov 26, 2018

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #29321
License MIT
Doc PR n/a

NumberToLocalizedStringTransformer::reverseTransform now special cases all case variants of "NaN", not just "NaN" specifically to insulate itself from changing behaviour in ICU.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for submitting.
note that 2.8 just crossed its end of life for regular bug fixes, this should be merged on 3.4 now.
would it be possible to add a test case please?

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Nov 27, 2018
@xabbuh xabbuh changed the base branch from 2.8 to 3.4 November 27, 2018 14:03
@nicolas-grekas
Copy link
Member

Thank you @mwhudson.

@nicolas-grekas nicolas-grekas merged commit 85af682 into symfony:3.4 Nov 29, 2018
nicolas-grekas added a commit that referenced this pull request Nov 29, 2018
…mber (mwhudson, xabbuh)

This PR was merged into the 3.4 branch.

Discussion
----------

[Form] Handle all case variants of "nan" when parsing a number

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #29321
| License       | MIT
| Doc PR        | n/a

NumberToLocalizedStringTransformer::reverseTransform now special cases all case variants of "NaN", not just "NaN" specifically to insulate itself from changing behaviour in ICU.

Commits
-------

85af682 add a test case
d903dcb [Form] Handle all case variants of "nan" when parsing a number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants