You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #12416 Make clear when the options are effectively required (ohvitorino)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes#12416).
Discussion
----------
Make clear when the options are effectively required
In the documentation related to the `Count` constraint is not clear that the parameters `min` and `max` are dependent on each other to determine if they are required.
This is an snipped taken from `\Symfony\Component\Validator\Constraints\Count` in package `symfony/validator` version 4.3.4 that states this dependency:
```
if (null === $this->min && null === $this->max) {
throw new MissingOptionsException(sprintf('Either option "min" or "max" must be given for constraint %s', __CLASS__), ['min', 'max']);
}
```
Commits
-------
8534533 Make clear when the options are effectively required
0 commit comments