Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Comparison of Array with boolean #882

Open
antoineveldhoven opened this issue Nov 13, 2023 · 1 comment · May be fixed by #883
Open

[BUG] Comparison of Array with boolean #882

antoineveldhoven opened this issue Nov 13, 2023 · 1 comment · May be fixed by #883

Comments

@antoineveldhoven
Copy link
Contributor

Comparison of Array with boolean will only be true if Array.length == 1.
For arrays with more than one element this will render incorrect.

TwigPHP example
twig.js example

@willrowe
Copy link
Collaborator

Here is a more direct comparison: https://codepen.io/willrowe/pen/KKJybpj
twig.js outputs true, false, false when true, true, false is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants