PhpStorm find all deprecated usages in the project

alexey_detr picture alexey_detr · Oct 2, 2013 · Viewed 19.7k times · Source

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.

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

Answer

LazyOne picture LazyOne · Oct 3, 2013

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

enter image description here

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).