New in Symfony 4.2: DivisibleBy constraint

Contributed by Colin O’Dell in #28069. In Symfony 4.2, the Validator component has introduced a new DivisibleBy constraint to check whether one number is a multiple of ("divisible by") some other number. It’s mostly useful for enforcing specific increments on a number: 1 2 3 4 5 6 7 8 9 10 11 12 13…