8000 Removed duplicate "long"s in length constraint by bystones · Pull Request #5102 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content
8000

Removed duplicate "long"s in length constraint #5102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Removed duplicate "long"s
  • Loading branch information
bystones committed Mar 21, 2015
commit 3864d5d0fac0c41a31610b4259875e9e0c3fe5bd
8 changes: 4 additions & 4 deletions reference/constraints/Length.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ To verify that the ``firstName`` field length of a class is between "2" and
min: 2
max: 50
minMessage: "Your first name must be at least {{ limit }} characters long"
maxMessage: "Your first name cannot be longer than {{ limit }} characters long"
maxMessage: "Your first name cannot be longer than {{ limit }} characters"

.. code-block:: php-annotations

Expand All @@ -52,7 +52,7 @@ To verify that the ``firstName`` field length of a class is between "2" and
* min = 2,
* max = 50,
* minMessage = "Your first name must be at least {{ limit }} characters long",
* maxMessage = "Your first name cannot be longer than {{ limit }} characters long"
* maxMessage = "Your first name cannot be longer than {{ limit }} characters"
* )
*/
protected $firstName;
Expand All @@ -72,7 +72,7 @@ To verify that the ``firstName`` field length of a class is between "2" and
<option name="min">2</option>
<option name="max">50</option>
<option name="minMessage">Your first name must be at least {{ limit }} characters long</option>
<option name="maxMessage">Your first name cannot be longer than {{ limit }} characters long</option>
<option name="maxMessage">Your first name cannot be longer than {{ limit }} characters</option>
</constraint>
</property>
</class>
Expand All @@ -94,7 +94,7 @@ To verify that the ``firstName`` field length of a class is between "2" and
'min' => 2,
'max' => 50,
'minMessage' => 'Your first name must be at least {{ limit }} characters long',
'maxMessage' => 'Your first name cannot be longer than {{ limit }} characters long',
'maxMessage' => 'Your first name cannot be longer than {{ limit }} characters',
)));
}
}
Expand Down
0