File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Options - `groups`_
13
13
- `min `_
14
14
- `minMessage `_
15
15
- `minPropertyPath `_
16
+ - `notInRangeMessage `_
16
17
- `payload `_
17
18
Class :class: `Symfony\\ Component\\ Validator\\ Constraints\\ Range `
18
19
Validator :class: `Symfony\\ Component\\ Validator\\ Constraints\\ RangeValidator `
@@ -433,3 +434,25 @@ with regard to the ``$startDate`` property of the same object, use
433
434
434
435
.. _`is_numeric` : https://php.net/manual/en/function.is-numeric.php
435
436
.. _`accepted by the DateTime constructor` : https://php.net/manual/en/datetime.formats.php
437
+
438
+ notInRangeMessage
439
+ ~~~~~~~~~~~~~~~~~
440
+
441
+ **type **: ``string `` **default **: ``This value should be between {{ min }} and {{ max }}. ``
442
+
443
+ .. versionadded :: 4.4
444
+
445
+ The ``notInRangeMessage `` option was introduced in Symfony 4.4.
446
+
447
+ The message that will be shown if the underlying value is less than the
448
+ `min `_ option and more than the `max `_ option.
449
+
450
+ You can use the following parameters in this message:
451
+
452
+ =============== ==============================================================
453
+ Parameter Description
454
+ =============== ==============================================================
455
+ ``{{ max }} `` The upper limit
456
+ ``{{ min }} `` The lower limit
457
+ ``{{ value }} `` The current (invalid) value
458
+ =============== ==============================================================
You can’t perform that action at this time.
0 commit comments