diff --git a/book/testing.rst b/book/testing.rst index 987af5a1d5e..3e1f3b48e29 100644 --- a/book/testing.rst +++ b/book/testing.rst @@ -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 { diff --git a/book/validation.rst b/book/validation.rst index 92958ee094c..8ed9297d678 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -539,7 +539,7 @@ class to have at least 3 characters. { /** * @Assert\NotBlank() - * @Assert\Length(min="3") + * @Assert\Length(min=3) */ private $firstName; } @@ -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, ))); }