- Issue created by @Liam Morland
- 🇫🇷France pdureau Paris
Hello Liam,
sdc_devel validator is working on the AST (abstract syntax tree) from the already parsed template, so sometimes 2 different template syntaxes are parsed as the same nodes and trigger the same warnings/errors.
However, it seems those expressions produces clearly different nodes:
is not null
is parsed as https://github.com/twigphp/Twig/blob/3.x/src/Node/Expression/Test/NullTe...variable ??
is parsed as https://github.com/twigphp/Twig/blob/3.x/src/Node/Expression/Binary/Null...
@mogtofu33: What do you thing about that?
- 🇫🇷France pdureau Paris
is it related to 📌 Ternary and default tests update with Twig 3.19 Active ?
-
mogtofu33 →
committed 007e22d9 on 1.0.x
Issue #3511259 by liam morland, mogtofu33: Warning is raised about null...
-
mogtofu33 →
committed 007e22d9 on 1.0.x
- 🇫🇷France mogtofu33
NullCoalesceBinary didn't exist before Twig 3.7, added as a new test and fix the false positive here.
Automatically closed - issue fixed for 2 weeks with no activity.