Skip to content

Commit 88bde6b

Browse files
committed
minor #14947 [Validator] Add a missing namespace and use (wkania)
This PR was merged into the 5.2 branch. Discussion ---------- [Validator] Add a missing namespace and use <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 5df61fd [Validator] Add a missing namespace and use
2 parents 2a18443 + 5df61fd commit 88bde6b

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)