From 5df61fdfc234a4c956e3329fd9bced53c2d2d00f Mon Sep 17 00:00:00 2001 From: wkania Date: Tue, 9 Feb 2021 20:15:55 +0100 Subject: [PATCH] [Validator] Add a missing namespace and use --- validation/custom_constraint.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/validation/custom_constraint.rst b/validation/custom_constraint.rst index 9cecde12b8a..468342ea5bd 100644 --- a/validation/custom_constraint.rst +++ b/validation/custom_constraint.rst @@ -285,6 +285,11 @@ not to the property: .. code-block:: php-attributes + // src/Entity/AcmeEntity.php + namespace App\Entity; + + use App\Validator as AcmeAssert; + #[AcmeAssert\ProtocolClass] class AcmeEntity {