Skip to content

Change IntegerType::scale default value to 0 #9549

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

BenoitDuffez
Copy link

@xabbuh
Copy link
Member

xabbuh commented Apr 4, 2018

This will also affect the NumberType where this file is used too. I would instead rather drop the inclusion of this option from the reference of the IntegerType instead.

@xabbuh xabbuh added this to the 2.7 milestone Apr 4, 2018
@BenoitDuffez
Copy link
Author

Indeed. I grepped around to see if that file was included and I failed to see that it was used by NumberType. I will add commits to the PR.

As pointed out in the comments of symfony/pull/9549, the scale.rst.inc file is included twice: once in integer.rst (the goal of the PR) and once in number.rst.
number.rst should not see this edit as its scale parameter is not ignored.
Hence, the inclusion was removed from integer.rst and the edit was made.
number.rst is now identical to base ref.
@BenoitDuffez
Copy link
Author

Done. Note that the scale.rst.inc is now included only once, and could be inlined in number.rst.

Would that be interesting to change in this PR?

@ostrolucky
Copy link
Contributor

dupe of #9542

@BenoitDuffez
Copy link
Author

Indeed, thanks.

@BenoitDuffez BenoitDuffez deleted the BenoitDuffez-patch-fix-reference-forms-types-integer-scale-zero branch April 9, 2018 07:53
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