Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb07c0f4

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 parentsc19598a +dcffc02 commitb07c0f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎reference/constraints/Length.rst

Lines changed: 4 additions & 4 deletions
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
<optionname="min">2</option>
7373
<optionname="max">50</option>
7474
<optionname="minMessage">Your first name must be at least {{ limit }} characters long</option>
75-
<optionname="maxMessage">Your first name cannot be longer than {{ limit }} characters long</option>
75+
<optionname="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)

[8]ページ先頭

©2009-2025 Movatter.jp