Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit1145b5a

Browse files
committed
minor#10918 Update Range.rst (DonCallisto)
This PR was merged into the 3.4 branch.Discussion----------Update Range.rstI 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#L36I'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 parents990b71c +ddeea95 commit1145b5a

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)

[8]ページ先頭

©2009-2025 Movatter.jp