Skip to content

Commit 329ce32

Browse files
committed
Fix namespace/filepath mismatches found by DOCtor-RST
- Fix Author filepath from src/EntityAuthor.php to src/Entity/Author.php - Fix User namespace from App\Entity\User to App\Entity
1 parent eca286e commit 329ce32

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

reference/constraints/Choice.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ If your valid choice list is simple, you can pass them in directly via the
8383
8484
.. code-block:: php
8585
86-
// src/EntityAuthor.php
86+
// src/Entity/Author.php
8787
namespace App\Entity;
8888
8989
use Symfony\Component\Validator\Constraints as Assert;
@@ -170,7 +170,7 @@ constraint.
170170
171171
.. code-block:: php
172172
173-
// src/EntityAuthor.php
173+
// src/Entity/Author.php
174174
namespace App\Entity;
175175
176176
use Symfony\Component\Validator\Constraints as Assert;

reference/constraints/Compound.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ You can now use it anywhere you need it:
5353
.. code-block:: php-attributes
5454
5555
// src/Entity/User.php
56-
namespace App\Entity\User;
56+
namespace App\Entity;
5757
5858
use App\Validator\Constraints as Assert;
5959
@@ -89,7 +89,7 @@ You can now use it anywhere you need it:
8989
.. code-block:: php
9090
9191
// src/Entity/User.php
92-
namespace App\Entity\User;
92+
namespace App\Entity;
9393
9494
use App\Validator\Constraints as Assert;
9595
use Symfony\Component\Validator\Mapping\ClassMetadata;

0 commit comments

Comments
 (0)