Skip to content

Cannot evaluate null-returning expression in DoTag when failOnUnknownTokens is enabled #1259

Description

@jsokolowska

If failOnUnknownTokens option is enabled following code fails with UnknownTokenException:

{% set object = {} %}{% do object.update({}) %}

This always happens if an expression executed by do tag is evaluated to null and failOnUnknown is enabled. Method .update always returns null and there are no missing tokens involved so, logically, I'd expect that to work regardless of the setting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions