Page 1 of 1

Twig error

PostPosted: November 18th, 2018, 12:57 pm
by jorrit
The twig editor considers
Code: Select all
{% trans %}
an "unexpected token". The twig code is red underlined with on hover showing that error message. Is this desirable? If not, is this fixable (by PHP Tools, me, third party)?

Re: Twig error

PostPosted: November 26th, 2018, 2:43 pm
by Michal Brabec
Hi jorrit,
we would like to address your issue, but we would need a bigger code sample to determine the situation and fix it if necessary.
Could you please send us a sample file where does Twig determine the {% trans %} tag as unexpected?
Best regards,
Michal

Re: Twig error

PostPosted: November 29th, 2018, 9:12 am
by Michal Brabec
Hi jorrit,
I have investigated the issue and the trans tag is part of the Symfony extension for Twig. We currently do not directly support this extension, but we are planning to add extensions in the future.
What extensions would you like to see the most in PHP Tools?
Thanks,
Michal

Re: Twig error

PostPosted: January 12th, 2019, 9:17 am
by jorrit
Thanks for you explanation. (More) support for frequently used extensions in popular frameworks would be a great improvement indeed, but I don't have specific requests right now. Thanks again.