Skip to content

Commit 1a71a9c

Browse files
authored
[Validator] Add PHP Attribute as an annotation option in the description
1 parent e082c3a commit 1a71a9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validation/custom_constraint.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ First you need to create a Constraint class and extend :class:`Symfony\\Componen
5252

5353
.. note::
5454

55-
The ``@Annotation`` annotation is necessary for this new constraint in
55+
The ``@Annotation`` or ``#[\Attribute]`` annotation is necessary for this new constraint in
5656
order to make it available for use in classes via annotations.
5757
Options for your constraint are represented as public properties on the
5858
constraint class.

0 commit comments

Comments
 (0)