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: -- but addind a colon isn't working for me.
Liubov Melnikova
Comment actions Permalink

Please try the latest EAP: , I can not reproduce the issue there.


Please sign in to leave a comment.