Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3596f8c

Browse filesBrowse files
committed
Add ifFalse()
1 parent b198f77 commit 3596f8c
Copy full SHA for 3596f8c

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎components/config/definition.rst

Copy file name to clipboardExpand all lines: components/config/definition.rst
+5Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.