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 Oracle触发器记录修改前后的字段值
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器