PHPStorm为在Symfony项目的注释中使用的导入显示警告 [英] PHPStorm is displaying warnings for imports that are used in annotations in Symfony project
问题描述
我正在研究symfony项目,并且正在使用控制器的注解,等等.
I am working on symfony project and I am using annotations for controllers and so on.
但是我对注释中的每次使用或导入都发出了警告.我很拼命,我试图重建缓存并重新启动多次.
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.
我有Symfony2插件和Symfony2-已安装Clickable Views,但是卸载并安装它们却无济于事.
I have Symfony2 plugin and Symfony2 - Clickable Views installed but uninstalling and installing them does not help.
推荐答案
请确保您已安装并启用 PHP注释插件.
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.
这篇关于PHPStorm为在Symfony项目的注释中使用的导入显示警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!