Skip to content

Commit ac5e9d5

Browse files
committed
minor #14978 [Validator] Mention PHP Attribute as an annotation option (wkania)
This PR was merged into the 5.2 branch. Discussion ---------- [Validator] Mention PHP Attribute as an annotation option <!-- 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 ------- 1a71a9c [Validator] Add PHP Attribute as an annotation option in the description
2 parents e12d696 + 1a71a9c commit ac5e9d5

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)