Skip to content

Commit ee1f289

Browse files
committed
minor #18862 [Validator] Add is_valid() expression (alexandre-daubois)
This PR was merged into the 6.4 branch. Discussion ---------- [Validator] Add `is_valid()` expression Fix #18861 Commits ------- 1881480 [Validator] Add `is_valid()` expression
2 parents e39321b + 1881480 commit ee1f289

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reference/constraints/Expression.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,14 @@ in your expression:
244244
* ``value``: The value of the property being validated (only available when
245245
the constraint is applied directly to a property);
246246

247+
You also have access to the ``is_valid()`` function in your expression. It
248+
allows to check that the data passed to function doesn't raise any
249+
validation violation.
250+
251+
.. versionadded:: 6.4
252+
253+
The ``is_valid()`` expression function was introduced in Symfony 6.4.
254+
247255
.. include:: /reference/constraints/_groups-option.rst.inc
248256

249257
``message``

0 commit comments

Comments
 (0)