Skip to content

Commit

Permalink
Missing information about payload in callback
Browse files Browse the repository at this point in the history
  • Loading branch information
alamirault committed Aug 27, 2023
1 parent 123bc51 commit ab647bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions reference/constraints/Callback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,12 @@ callback method:
* A closure.

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

Static or closure callbacks receive the validated object as the first argument
and the :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
instance as the second argument.
, the :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
instance as the second argument and the :ref:`payload option <payload>` as the
third argument.

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

Expand Down

0 comments on commit ab647bf

Please sign in to comment.