Skip to content

Commit 455d2cc

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Clarify the usage of the `value` variable in the When constraint documentation
2 parents f0897ca + 08081f2 commit 455d2cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

reference/constraints/When.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,9 @@ applied but the constraints defined in ``otherwise`` option (if provided) will b
187187
``this``
188188
The object being validated (e.g. an instance of Discount).
189189
``value``
190-
The value of the property being validated (only available when
191-
the constraint is applied to a property).
190+
Either the object being validated (when the constraint is applied to a class),
191+
the value of the property being validated (when applied to a property),
192+
or the :doc:`raw value </validation/raw_values>`.
192193
``context``
193194
The :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
194195
object that provides information such as the currently validated class, the

0 commit comments

Comments
 (0)