-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
What
I expect false to return, but true returns.
How to reproduce
tested with twig/twig 3.21.1
{% set fooBar = {0: 'foo', 1: 'bar'} %}
{{ dump( true in fooBar, false in fooBar, 0 in fooBar, 1 in fooBar ) }}
Will return: true , false, false, false
I expect to return false in all cases, but the first case returns true.