Skip to content

Navigation Menu

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 a316ae8

Browse filesBrowse files
committed
minor #20502 [Config] Add ifFalse() (OskarStark)
This PR was merged into the 7.3 branch. Discussion ---------- [Config] Add `ifFalse()` Fix #20499 Commits ------- 3596f8c Add ifFalse()
2 parents 92462ce + 3596f8c commit a316ae8
Copy full SHA for a316ae8

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.