Skip to content

Commit 08081f2

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: Clarify the usage of the `value` variable in the When constraint documentation
2 parents 26e5ae7 + aa7098c commit 08081f2

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
@@ -169,8 +169,9 @@ in your expression:
169169
``this``
170170
The object being validated (e.g. an instance of Discount).
171171
``value``
172-
The value of the property being validated (only available when
173-
the constraint is applied to a property).
172+
Either the object being validated (when the constraint is applied to a class),
173+
the value of the property being validated (when applied to a property),
174+
or the :doc:`raw value </validation/raw_values>`.
174175
``context``
175176
The :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
176177
object that provides information such as the currently validated class, the

0 commit comments

Comments
 (0)