Skip to content

Commit 7b03ab2

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: Clarify the usage of the `value` variable in the When constraint documentation
2 parents 21408fe + b5d2bc9 commit 7b03ab2

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)