Skip to content

Commit 1deabde

Browse files
author
Christian Flothmann
committed
[Reference] fix namespace in Expression constraint
1 parent 850b93b commit 1deabde

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

reference/constraints/Expression.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ One way to accomplish this is with the Expression constraint:
7373
.. code-block:: php-annotations
7474
7575
// src/Acme/DemoBundle/Model/BlogPost.php
76-
namespace Acme\DemoBundle\Model\BlogPost;
76+
namespace Acme\DemoBundle\Model;
7777
7878
use Symfony\Component\Validator\Constraints as Assert;
7979
@@ -102,11 +102,10 @@ One way to accomplish this is with the Expression constraint:
102102
</constraint>
103103
</class>
104104
105-
106105
.. code-block:: php
107106
108107
// src/Acme/DemoBundle/Model/BlogPost.php
109-
namespace Acme\DemoBundle\Model\BlogPost;
108+
namespace Acme\DemoBundle\Model;
110109
111110
use Symfony\Component\Validator\Mapping\ClassMetadata;
112111
use Symfony\Component\Validator\Constraints as Assert;

0 commit comments

Comments
 (0)