Skip to content

Commit 1f87816

Browse files
committed
minor #17797 [ExpressionLanguage] Deprecate loose comparisons when using the "in" operator (alexandre-daubois)
This PR was merged into the 6.3 branch. Discussion ---------- [ExpressionLanguage] Deprecate loose comparisons when using the "in" operator Fixes #17796 Commits ------- 296a5be [ExpressionLanguage] Deprecate loose comparisons when using the "in" operator
2 parents 7946474 + 296a5be commit 1f87816

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)