9f4615a7ae
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 | https://github.com/symfony/symfony-docs/pull/10121
See https://github.com/symfony/symfony-docs/pull/10121 for examples of this constraint in action.
Commits
-------
|
||
---|---|---|
.. | ||
validators.af.xlf | ||
validators.ar.xlf | ||
validators.az.xlf | ||
validators.bg.xlf | ||
validators.ca.xlf | ||
validators.cs.xlf | ||
validators.cy.xlf | ||
validators.da.xlf | ||
validators.de.xlf | ||
validators.el.xlf | ||
validators.en.xlf | ||
validators.es.xlf | ||
validators.et.xlf | ||
validators.eu.xlf | ||
validators.fa.xlf | ||
validators.fi.xlf | ||
validators.fr.xlf | ||
validators.gl.xlf | ||
validators.he.xlf | ||
validators.hr.xlf | ||
validators.hu.xlf | ||
validators.hy.xlf | ||
validators.id.xlf | ||
validators.it.xlf | ||
validators.ja.xlf | ||
validators.lb.xlf | ||
validators.lt.xlf | ||
validators.lv.xlf | ||
validators.mn.xlf | ||
validators.nb.xlf | ||
validators.nl.xlf | ||
validators.nn.xlf | ||
validators.no.xlf | ||
validators.pl.xlf | ||
validators.pt_BR.xlf | ||
validators.pt.xlf | ||
validators.ro.xlf | ||
validators.ru.xlf | ||
validators.sk.xlf | ||
validators.sl.xlf | ||
validators.sq.xlf | ||
validators.sr_Cyrl.xlf | ||
validators.sr_Latn.xlf | ||
validators.sv.xlf | ||
validators.th.xlf | ||
validators.tl.xlf | ||
validators.tr.xlf | ||
validators.uk.xlf | ||
validators.vi.xlf | ||
validators.zh_CN.xlf | ||
validators.zh_TW.xlf |