From ab647bf2ed6e56d0a81c2a2a331cb88f045ebf43 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Sun, 27 Aug 2023 14:28:47 +0200 Subject: [PATCH] Missing information about payload in callback --- reference/constraints/Callback.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reference/constraints/Callback.rst b/reference/constraints/Callback.rst index e3f68c2b788..ea870683cc1 100644 --- a/reference/constraints/Callback.rst +++ b/reference/constraints/Callback.rst @@ -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 ` 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 ` as the +third argument. .. include:: /reference/constraints/_groups-option.rst.inc