Skip to content

Commit cddc341

Browse files
committed
Merge branch '5.0' into 5.1
* 5.0: Fix: message must be notInRangeMessage
2 parents b4d1c96 + 14ec141 commit cddc341

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)