Skip to content

Commit 296a5be

Browse files
[ExpressionLanguage] Deprecate loose comparisons when using the "in" operator
1 parent 7946474 commit 296a5be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/expression_language.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,13 @@ For example::
432432

433433
The ``$inGroup`` would evaluate to ``true``.
434434

435+
.. deprecated:: 6.3
436+
437+
In Symfony versions previous to 6.3, ``in`` and ``not in`` operators
438+
were using loose comparison. Using these operators with variables of
439+
different types is now deprecated, and these operators will be using
440+
strict comparison from Symfony 7.0.
441+
435442
Numeric Operators
436443
.................
437444

0 commit comments

Comments
 (0)