Skip to content

Plugin erroneously diagnoses translate filter with parameters as syntactically invalid #204

Description

@Marian-Kechlibar

Describe the bug
Filters like translate are able to take parameters. An example:

{var $pingHttpTranslated = ('kraken.http.statuscode'|translate, [code: $httpCode]) }

This is valid latte and works as expected. But Latte plugin 1.1.7 diagnoses the line incorrectly, puts a red wiggle under "translate" and says "Filters are not allowed here".

Environment (please complete the following information):

  • PhpStorm version [e.g. 2023.1]
  • Plugin version [e.g. 1.1.7]

To Reproduce
Just use a translation with parameters in the indicated way.

Screenshots
If applicable, add screenshots to help explain your problem.

screenshot_translate_with_parameters

Metadata

Metadata

Assignees

No one assigned

    Labels

    EAPThis is being considered for the next EAP versionenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions