dongnvwang8591 2012-09-03 06:54
浏览 283
已采纳

PHPStorm无视@deprecated评论

I deprecated a method in my project by adding @deprecated to the docBlock, expecting PHPStorm to pick that up when addressing that specific method. My PHPStorm, however, seems to disregard the comment and doesn't mark usages of that method as deprecated.

Now I do know that usage of this method is no longer allowed, but some of my colleagues may not. I just checked at someone else's computer and he's getting the deprecation warning, so it might not be a problem for everyone. I can't guarantee that though.

I invalidated the caches, rebooted PHPStorm, removed and re-added the @deprecated, but nothing seems to work.

Does anyone have a suggestion? Is there a setting I'm missing?

  • 写回答

1条回答 默认 最新

  • doudichu1358 2012-09-03 07:01
    关注

    Oops, found it...

    For some reason my settings were changed/set back to default and the 'error when deprecated' setting was turned off.

    Settings -> Inspections -> PHP -> General -> Deprecated -> As error

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序