Skip to content

Commit 76787a7

Browse files
committed
Merge pull request symfony#703 from stof/typo
Typo
2 parents fdc45b7 + 4308a65 commit 76787a7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

reference/constraints/False.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ you want to guarantee that some ``state`` property is *not* in a dynamic
2626
``invalidStates`` array. First, you'd create a "getter" method::
2727

2828
protected $state;
29-
29+
3030
protectd $invalidStates = array();
3131

3232
public function isStateInvalid()
@@ -55,10 +55,10 @@ method returns **false**:
5555
5656
class Author
5757
{
58-
/**
58+
/**
5959
* @Assert\False()
6060
*/
61-
public function isStateInvalid($messsage = "You've entered an invalid state.")
61+
public function isStateInvalid($message = "You've entered an invalid state.")
6262
{
6363
// ...
6464
}

reference/constraints/Max.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ add the following:
3939
class Participant
4040
{
4141
/**
42-
* @Assert\Max(limit = "50", message = "You must be 50 or under to enter.")
42+
* @Assert\Max(limit = 50, message = "You must be 50 or under to enter.")
4343
*/
4444
protected $age;
4545
}

reference/constraints/MinLength.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Basic Usage
2727
properties:
2828
firstName:
2929
- MinLength: { limit: 3, message: Your name must have at least {{ limit}} characters. }
30-
30+
3131
.. code-block:: php-annotations
3232
3333
// src/Acme/BlogBundle/Entity/Blog.php
@@ -37,13 +37,13 @@ Basic Usage
3737
{
3838
/**
3939
* @Assert\MinLength(
40-
* limit: 3,
41-
* message: "Your name must have at least {{ limit}} characters."
40+
* limit=3,
41+
* message="Your name must have at least {{ limit}} characters."
4242
* )
4343
*/
4444
protected $summary;
4545
}
46-
46+
4747
.. code-block:: xml
4848
4949
<!-- src/Acme/BlogBundle/Resources/config/validation.xml -->

0 commit comments

Comments
 (0)