Skip to content

Commit a36719b

Browse files
committed
minor symfony#13739 Fix: message must be notInRangeMessage (amalricBzh)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead. Discussion ---------- Fix: message must be notInRangeMessage Example was wrong : when min and max are specified, minMessage and MaxMessage are ignored. Commits ------- d0ca467 Fix: message must be notInRangeMessage
2 parents 485b729 + d0ca467 commit a36719b

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)