Skip to content

Deprecated the NumberToLocalizedStringTransformer constants #13654

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 1 commit into from
May 12, 2020

Conversation

javiereguiluz
Copy link
Member

Fixes #13646.

@javiereguiluz
Copy link
Member Author

Christian, thanks for the fixes! I've also reworded the last paragraph.

@javiereguiluz javiereguiluz merged commit 5c6bdf0 into symfony:master May 12, 2020
option is a constant on the :class:`Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\NumberToLocalizedStringTransformer`:
If a submitted number needs to be rounded (based on the `scale`_ option), you
have several configurable options for that rounding. Each option is a constant
on the ``\NumberFormatter`` class:
Copy link
Member

Choose a reason for hiding this comment

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

What about doing :phpclass:`NumberFormatter` here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes! Done in af24efa

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.

[Form] deprecate NumberToLocalizedStringTransformer::ROUND_* constants
4 participants