10000 [Validator] Range constraint: min and mix can be integer or string · symfony/symfony-docs@560a96f · GitHub
[go: up one dir, main page]

Skip to content

Commit 560a96f

Browse files
wuestkampxabbuh
authored andcommitted
[Validator] Range constraint: min and mix can be integer or string
1 parent 4de47b4
8000
 commit 560a96f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/constraints/Range.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Range
22
=====
33

4-
Validates that a given number is *between* some minimum and maximum number.
4+
Validates that a given number or ``DateTime`` object is *between* some minimum and maximum.
55

66
+----------------+---------------------------------------------------------------------+
77
| Applies to | :ref:`property or method <validation-property-target>` |
@@ -320,15 +320,15 @@ Options
320320
min
321321
~~~
322322

323-
**type**: ``integer``
323+
**type**: ``int`` 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**: ``integer``
331+
**type**: ``int`` 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)
0