Skip to content

Commit 111e861

Browse files
committed
minor #18791 [Validator] Missing information about payload in callback (alamirault)
This PR was merged into the 5.4 branch. Discussion ---------- [Validator] Missing information about payload in callback Fix #18787 Commits ------- ab647bf Missing information about payload in callback
2 parents 048850b + ab647bf commit 111e861

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reference/constraints/Callback.rst

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

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

309309
Static or closure callbacks receive the validated object as the first argument
310-
and the :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
311-
instance as the second 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.
312313

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

0 commit comments

Comments
 (0)