Skip to content

Commit 6d10392

Browse files
committed
Fixed some of the comments
1 parent 6825fee commit 6d10392

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

book/testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ unit tests. Suppose, for example, that you have an *incredibly* simple class
5454
called ``Calculator`` in the ``Util/`` directory of the app bundle::
5555

5656
// src/AppBundle/Util/Calculator.php
57-
namespace AppBundle\Utility;
57+
namespace AppBundle\Util;
5858

5959
class Calculator
6060
{

book/validation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ class to have at least 3 characters.
539539
{
540540
/**
541541
* @Assert\NotBlank()
542-
* @Assert\Length(min="3")
542+
* @Assert\Length(min=3)
543543
*/
544544
private $firstName;
545545
}
@@ -823,7 +823,7 @@ user registers and when a user updates their contact information later:
823823
'groups' => array('registration'),
824824
)));
825825
826-
$metadata->addPropertyConstraint('city', Assert\Length(array(
826+
$metadata->addPropertyConstraint('city', new Assert\Length(array(
827827
"min" => 3,
828828
)));
829829
}

0 commit comments

Comments
 (0)