Skip to content

Commit 0624d24

Browse files
committed
[ExpressionLanguage] Document the null-coalesce operator changes
1 parent 8133ba0 commit 0624d24

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

reference/formats/expression_language.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,10 @@ returns the right-hand side. Expressions can chain multiple coalescing operators
124124
* ``foo[3] ?? 'no'``
125125
* ``foo.baz ?? foo['baz'] ?? 'no'``
126126

127-
.. note::
127+
.. versionadded:: 7.2
128128

129-
The main difference with the `null-coalescing operator in PHP`_ is that
130-
ExpressionLanguage will throw an exception when trying to access a
131-
non-existent variable.
129+
Starting from Symfony 7.2, no exception is thrown when trying to access a
130+
non-existent variable. This is the same behavior as the `null-coalescing operator in PHP`_.
132131

133132
.. _component-expression-functions:
134133

0 commit comments

Comments
 (0)