Search code examples
phpsymfonyannotationsphpstorm

PHPStorm is displaying warnings for imports that are used in annotations in Symfony project


I am working on symfony project and I am using annotations for controllers and so on.

a busy cat

But I got warning on every use or import I have in annotations. I am desperate a I have tried to rebuild cache and restart multiple times.

I have Symfony2 plugin and Symfony2 - Clickable Views installed but uninstalling and installing them does not help.


Solution

  • Make sure that you have PHP Annotations plugin installed and enabled.

    It's a 3rd party plugin (hence not bundled by default) that handles annotations and all around it.