Skip to content

Commit 343db13

Browse files
committed
minor #11110 Fixed the "applies to" of the Callback constraint (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Fixed the "applies to" of the Callback constraint I've checked the source code of all constraint validators to see if the "applies to" was correct ... there was only one issue. Commits ------- 8bba58a Fixed the "applies to" of the Callback constraint
2 parents e559074 + 8bba58a commit 343db13

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

reference/constraints/Callback.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ can do anything, including creating and assigning validation errors.
1717
as you'll see in the example, a callback method has the ability to directly
1818
add validator "violations".
1919

20-
+----------------+------------------------------------------------------------------------+
21-
| Applies to | :ref:`class <validation-class-target>` |
22-
+----------------+------------------------------------------------------------------------+
23-
| Options | - :ref:`callback <callback-option>` |
24-
| | - `groups`_ |
25-
| | - `payload`_ |
26-
+----------------+------------------------------------------------------------------------+
27-
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Callback` |
28-
+----------------+------------------------------------------------------------------------+
29-
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\CallbackValidator` |
30-
+----------------+------------------------------------------------------------------------+
20+
+----------------+-----------------------------------------------------------------------------------------------+
21+
| Applies to | :ref:`class <validation-class-target>` or :ref:`property/method <validation-property-target>` |
22+
+----------------+-----------------------------------------------------------------------------------------------+
23+
| Options | - :ref:`callback <callback-option>` |
24+
| | - `groups`_ |
25+
| | - `payload`_ |
26+
+----------------+-----------------------------------------------------------------------------------------------+
27+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Callback` |
28+
+----------------+-----------------------------------------------------------------------------------------------+
29+
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\CallbackValidator` |
30+
+----------------+-----------------------------------------------------------------------------------------------+
3131

3232
Configuration
3333
-------------

0 commit comments

Comments
 (0)