Skip to content

Commit 722b40d

Browse files
committed
[ExpressionLanguage] Remove a feature that was merged into 6.2
1 parent 698ae45 commit 722b40d

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

components/expression_language/syntax.rst

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -343,23 +343,6 @@ Ternary Operators
343343
* ``foo ?: 'no'`` (equal to ``foo ? foo : 'no'``)
344344
* ``foo ? 'yes'`` (equal to ``foo ? 'yes' : ''``)
345345

346-
Null Coalescing Operator
347-
~~~~~~~~~~~~~~~~~~~~~~~~
348-
349-
This is the same as the PHP `null-coalescing operator`_, which combines
350-
the ternary operator and ``isset()``. It returns the left hand-side if it exists
351-
and it's not ``null``; otherwise it returns the right hand-side. Note that you
352-
can chain multiple coalescing operators.
353-
354-
* ``foo ?? 'no'``
355-
* ``foo.baz ?? 'no'``
356-
* ``foo[3] ?? 'no'``
357-
* ``foo.baz ?? foo['baz'] ?? 'no'``
358-
359-
.. versionadded:: 6.2
360-
361-
The null-coalescing operator was introduced in Symfony 6.2.
362-
363346
Built-in Objects and Variables
364347
------------------------------
365348

0 commit comments

Comments
 (0)