Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
IDE 使用 PHP 语言级别 5.5,我不希望它识别 mssql 库,因为我在窗口环境中。
mssql 库函数会导致 php 5.5 应用程序出现错误,IDE 无法检测到这些错误
我们可以删除mssql库识别吗?
您不能告诉 IDE“忘记”任何特定的类……除非您更改 PhpStorm 的安装并为它物理删除存根文件(对于每个新版本,您都必须这样做)。
您可以自己重新声明类/函数并为它们添加标签到PHPDoc@deprecated注释 - 这将告诉 IDE 将它们标记为已弃用并警告您(如果相应的检查已打开 -- Settings | Inspections | PHP | General | Deprecated)
@deprecated
Settings | Inspections | PHP | General | Deprecated