Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Marian-Kechlibar opened this issue Apr 12, 2023 · 0 comments
Labels
EAP This is being considered for the next EAP version enhancement

Comments

@Marian-Kechlibar
Copy link

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

@mesour mesour added enhancement EAP This is being considered for the next EAP version labels Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EAP This is being considered for the next EAP version enhancement
Projects
None yet
Development

No branches or pull requests

2 participants