-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Validator] Document the DivisibleBy constraint #10121
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
[Validator] Document the DivisibleBy constraint #10121
Conversation
The constraint has been renamed, so I've updated the documentation accordingly. |
…ivisibility (colinodell) This PR was squashed before being merged into the 4.2-dev branch (closes #28069). Discussion ---------- [Validator] New `DivisibleBy` constraint for testing divisibility This introduces a new ~`MultipleOf`~ `DivisibleBy` constraint which checks whether one number is a multiple of (aka "divisible by") some other number. Useful for enforcing specific increments on a number. | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | symfony/symfony-docs#10121 See symfony/symfony-docs#10121 for examples of this constraint in action. Commits ------- efcfb8b22d [Validator] New `DivisibleBy` constraint for testing divisibility
…ivisibility (colinodell) This PR was squashed before being merged into the 4.2-dev branch (closes #28069). Discussion ---------- [Validator] New `DivisibleBy` constraint for testing divisibility This introduces a new ~`MultipleOf`~ `DivisibleBy` constraint which checks whether one number is a multiple of (aka "divisible by") some other number. Useful for enforcing specific increments on a number. | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | symfony/symfony-docs#10121 See symfony/symfony-docs#10121 for examples of this constraint in action. Commits ------- efcfb8b [Validator] New `DivisibleBy` constraint for testing divisibility
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.
@colinodell thanks a lot for providing this new constraint and for documenting it too. Sadly there are some merge conflicts. Could you please fix them? Thanks!
Thanks for the heads-up @javiereguiluz! Looks like the |
It's merged now. Thanks Colin! |
…ell) This PR was merged into the master branch. Discussion ---------- [Validator] Document the DivisibleBy constraint Documentation for the new ~`MultipleOf`~ `DivisibleBy` constraint proposed in symfony/symfony#28069 Commits ------- 3270cca Document the DivisibleBy constraint
Documentation for the new
MultipleOf
DivisibleBy
constraint proposed in symfony/symfony#28069