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.

Please sign in to leave a comment.