Is there a way to avoid 'weak route' warning in Twig templates
I'm using phpstorm for a Symfony project. I get a message 'weak route' when I define a path like this inside a TWIG template:
<li><a href="{{ path('fos_user_change_password') }}">Change password</a></li>
I have the Symfony plugin enabled. It's working correctly, so not too concerned, but is there a cleaner way to point to paths that won't bring up this warning?
I found this that's describing the same issue:
http://stackoverflow.com/questions/23909895/symfony-weak-route -- but addind a colon isn't working for me.
Please sign in to leave a comment.
Please try the latest EAP: http://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program , I can not reproduce the issue there.
Please try this: http://stackoverflow.com/a/41335351/2987511