Skip to content

Typo #703

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

Merged
merged 1 commit into from
Sep 17, 2011
Merged

Typo #703

Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions reference/constraints/False.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ you want to guarantee that some ``state`` property is *not* in a dynamic
``invalidStates`` array. First, you'd create a "getter" method::

protected $state;

protectd $invalidStates = array();

public function isStateInvalid()
Expand Down Expand Up @@ -55,10 +55,10 @@ method returns **false**:

class Author
{
/**
/**
* @Assert\False()
*/
public function isStateInvalid($messsage = "You've entered an invalid state.")
public function isStateInvalid($message = "You've entered an invalid state.")
{
// ...
}
Expand Down
2 changes: 1 addition & 1 deletion reference/constraints/Max.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ add the following:
class Participant
{
/**
* @Assert\Max(limit = "50", message = "You must be 50 or under to enter.")
* @Assert\Max(limit = 50, message = "You must be 50 or under to enter.")
*/
protected $age;
}
Expand Down
8 changes: 4 additions & 4 deletions reference/constraints/MinLength.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Basic Usage
properties:
firstName:
- MinLength: { limit: 3, message: Your name must have at least {{ limit}} characters. }

.. code-block:: php-annotations

// src/Acme/BlogBundle/Entity/Blog.php
Expand All @@ -37,13 +37,13 @@ Basic Usage
{
/**
* @Assert\MinLength(
* limit: 3,
* message: "Your name must have at least {{ limit}} characters."
* limit=3,
* message="Your name must have at least {{ limit}} characters."
* )
*/
protected $summary;
}

.. code-block:: xml

<!-- src/Acme/BlogBundle/Resources/config/validation.xml -->
Expand Down