Skip to content

Commit b05f043

Browse files
committed
fixup! Use PHP attributes when creating custom validation constraints
1 parent ce6b4b7 commit b05f043

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

validation/custom_constraint.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ Creating the Constraint Class
1414

1515
First you need to create a Constraint class and extend :class:`Symfony\\Component\\Validator\\Constraint`:
1616

17+
.. versionadded:: 5.2
18+
19+
The ability to use PHP attributes to configure constraint was introduced in
20+
Symfony 5.2. Prior to this, Doctrine Annotations were the only way to
21+
annotate constraints.
22+
1723
.. configuration-block::
1824

1925
.. code-block:: php-annotations

0 commit comments

Comments
 (0)