Skip to content

Commit 1145b5a

Browse files
committed
minor #10918 Update Range.rst (DonCallisto)
This PR was merged into the 3.4 branch. Discussion ---------- Update Range.rst I think that `int` is kind of misleading here as any `is_numeric` value evaluated to `true` is accepted (other than strings). https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Validator/Constraints/RangeValidator.php#L36 I've done this PR for 3.4 but I think it should be reported to all next versions as well. Commits ------- ddeea95 Update Range.rst
2 parents 990b71c + ddeea95 commit 1145b5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/constraints/Range.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,15 +320,15 @@ Options
320320
min
321321
~~~
322322

323-
**type**: ``int`` or ``string`` (date format)
323+
**type**: ``numeric`` or ``string`` (date format)
324324

325325
This required option is the "min" value. Validation will fail if the given
326326
value is **less** than this min value.
327327

328328
max
329329
~~~
330330

331-
**type**: ``int`` or ``string`` (date format)
331+
**type**: ``numeric`` or ``string`` (date format)
332332

333333
This required option is the "max" value. Validation will fail if the given
334334
value is **greater** than this max value.

0 commit comments

Comments
 (0)