Skip to content

The twig:lint command does not detect some compile-time issues #10019

Closed
@stof

Description

@stof

Twig forbids using a positional argument after a named argument. This check is done at compile time but twig:lint does not detect it, because it does not try to compile the AST, and so does not validate rules enforced by the compiler rather than the parser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementGood first issueIdeal for your first contribution! (some Symfony experience may be required)TwigBundle

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions