Warning is raised about null ternary even when it is not used

Created on 5 March 2025, about 1 month ago

Problem/Motivation

This condition:

{% if variavble is not null %}

raises the warning "Use `|default(foo)` filter instead of null ternary `??`."

It should not mention null ternaries when null ternaries are not in use.

Proposed resolution

Fix the warning.

Remaining tasks

Implement

User interface changes

Improved warning.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024