Skip to content

Commit b07c0f4

Browse files
committed
minor #5102 Removed duplicate "long"s in length constraint (ByStones)
This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #5102). Discussion ---------- Removed duplicate "long"s in length constraint | Q | A | ------------- | --- | Doc fix? | [yes] | New docs? | [no] | Applies to | 2.5+ The maxMessage seems to have one long too many. This does apply to all maintained versions. Alternative could be: ``` maxMessage: "Your first name cannot be more than {{ limit }} characters long" ``` Commits ------- dcffc02 Removed duplicate "long"s
2 parents c19598a + dcffc02 commit b07c0f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/constraints/Length.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To verify that the ``firstName`` field length of a class is between "2" and
3636
min: 2
3737
max: 50
3838
minMessage: "Your first name must be at least {{ limit }} characters long"
39-
maxMessage: "Your first name cannot be longer than {{ limit }} characters long"
39+
maxMessage: "Your first name cannot be longer than {{ limit }} characters"
4040
4141
.. code-block:: php-annotations
4242
@@ -52,7 +52,7 @@ To verify that the ``firstName`` field length of a class is between "2" and
5252
* min = 2,
5353
* max = 50,
5454
* minMessage = "Your first name must be at least {{ limit }} characters long",
55-
* maxMessage = "Your first name cannot be longer than {{ limit }} characters long"
55+
* maxMessage = "Your first name cannot be longer than {{ limit }} characters"
5656
* )
5757
*/
5858
protected $firstName;
@@ -72,7 +72,7 @@ To verify that the ``firstName`` field length of a class is between "2" and
7272
<option name="min">2</option>
7373
<option name="max">50</option>
7474
<option name="minMessage">Your first name must be at least {{ limit }} characters long</option>
75-
<option name="maxMessage">Your first name cannot be longer than {{ limit }} characters long</option>
75+
<option name="maxMessage">Your first name cannot be longer than {{ limit }} characters</option>
7676
</constraint>
7777
</property>
7878
</class>
@@ -94,7 +94,7 @@ To verify that the ``firstName`` field length of a class is between "2" and
9494
'min' => 2,
9595
'max' => 50,
9696
'minMessage' => 'Your first name must be at least {{ limit }} characters long',
97-
'maxMessage' => 'Your first name cannot be longer than {{ limit }} characters long',
97+
'maxMessage' => 'Your first name cannot be longer than {{ limit }} characters',
9898
)));
9999
}
100100
}

0 commit comments

Comments
 (0)