Skip to content

Commit

Permalink
Fixed some of the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Jan 17, 2015
1 parent 6825fee commit 6d10392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion book/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ unit tests. Suppose, for example, that you have an *incredibly* simple class
called ``Calculator`` in the ``Util/`` directory of the app bundle::

// src/AppBundle/Util/Calculator.php
namespace AppBundle\Utility;
namespace AppBundle\Util;

class Calculator
{
Expand Down
4 changes: 2 additions & 2 deletions book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ class to have at least 3 characters.
{
/**
* @Assert\NotBlank()
* @Assert\Length(min="3")
* @Assert\Length(min=3)
*/
private $firstName;
}
Expand Down Expand Up @@ -823,7 +823,7 @@ user registers and when a user updates their contact information later:
'groups' => array('registration'),
)));
$metadata->addPropertyConstraint('city', Assert\Length(array(
$metadata->addPropertyConstraint('city', new Assert\Length(array(
"min" => 3,
)));
}
Expand Down

0 comments on commit 6d10392

Please sign in to comment.