8000 Add ifFalse() · symfony/symfony-docs@3596f8c · GitHub
[go: up one dir, main page]

Skip to content

Commit 3596f8c

Browse files
committed
Add ifFalse()
1 parent b198f77 commit 3596f8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/config/definition.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ A validation rule always has an "if" part. You can specify this part in
815815
the following ways:
816816

817817
- ``ifTrue()``
818+
- ``ifFalse()``
818819
- ``ifString()``
819820
- ``ifNull()``
820821
- ``ifEmpty()``
@@ -833,6 +834,10 @@ A validation rule also requires a "then" part:
833834
Usually, "then" is a closure. Its return value will be used as a new value
834835
for the node, instead of the node's original value.
835836

837+
.. versionadded:: 7.3
838+
839+
The ``ifFalse()`` method was introduced in Symfony 7.3.
840+
836841
Configuring the Node Path Separator
837842
-----------------------------------
838843

0 commit comments

Comments
 (0)
0