PhpStorm查找项目中所有不推荐使用的用法 [英] PhpStorm find all deprecated usages in the project

查看:246
本文介绍了PhpStorm查找项目中所有不推荐使用的用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在正在一个相当大的PHP项目上,我想将Symfony框架升级到下一个版本.在执行此操作之前,我想确保项目中没有使用过时的方法用法.

I'm working now on a pretty big PHP-project and I want to upgrade Symfony framework to the next version. Before I do that, I want to be sure that there are no deprecated method usages left in the project.

是否有方便的方法来查找PhpStorm中所有已弃用的方法用法?

Is there handy way to find all deprecated method usages in PhpStorm?

推荐答案

Code | Run Inspection by Name...-搜索已弃用"并选择正确的选项.

Code | Run Inspection by Name... -- search for "deprecated" and choose correct one.

只要项目中已经有新的Symfony,这将起作用(以便IDE知道现在认为不赞成使用哪种方法/类/常量).

This will work as long as new Symfony is already in the project (so that IDE knows what method/class/constant is now considered deprecated).

这篇关于PhpStorm查找项目中所有不推荐使用的用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆