Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1145b5a

Browse filesBrowse 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
Copy full SHA for 1145b5a

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎reference/constraints/Range.rst

Copy file name to clipboardExpand all lines: reference/constraints/Range.rst
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.