Skip to content

Commit 5df61fd

Browse files
authored
[Validator] Add a missing namespace and use
1 parent 4c041bc commit 5df61fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

validation/custom_constraint.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ not to the property:
285285
286286
.. code-block:: php-attributes
287287
288+
// src/Entity/AcmeEntity.php
289+
namespace App\Entity;
290+
291+
use App\Validator as AcmeAssert;
292+
288293
#[AcmeAssert\ProtocolClass]
289294
class AcmeEntity
290295
{

0 commit comments

Comments
 (0)