Skip to content

Commit d0ca467

Browse files
amalricBzhjaviereguiluz
authored andcommitted
Fix: message must be notInRangeMessage
Example was wrong : when min and max are specified, minMessage and MaxMessage are ignored.
1 parent 485b729 commit d0ca467

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

reference/constraints/Range.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ you might add the following:
4040
* @Assert\Range(
4141
* min = 120,
4242
* max = 180,
43-
* minMessage = "You must be at least {{ limit }}cm tall to enter",
44-
* maxMessage = "You cannot be taller than {{ limit }}cm to enter"
43+
* notInRangeMessage = "You must be between {{ min }}cm and {{ max }}cm tall to enter",
4544
* )
4645
*/
4746
protected $height;

0 commit comments

Comments
 (0)