Skip to content

Commit 61fcb40

Browse files
committed
Tweaks
1 parent 111e861 commit 61fcb40

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

reference/constraints/Callback.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,13 @@ callback method:
304304
* A closure.
305305

306306
Concrete callbacks receive an :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
307-
instance as the first argument and the :ref:`payload option <payload>` as the second argument.
307+
instance as the first argument and the :ref:`payload option <reference-constraints-payload>`
308+
as the second argument.
308309

309-
Static or closure callbacks receive the validated object as the first argument
310-
, the :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
311-
instance as the second argument and the :ref:`payload option <payload>` as the
312-
third argument.
310+
Static or closure callbacks receive the validated object as the first argument,
311+
the :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
312+
instance as the second argument and the :ref:`payload option <reference-constraints-payload>`
313+
as the third argument.
313314

314315
.. include:: /reference/constraints/_groups-option.rst.inc
315316

reference/constraints/_payload-option.rst.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _reference-constraints-payload:
2+
13
``payload``
24
~~~~~~~~~~~
35

0 commit comments

Comments
 (0)