

When we announced basic support for generics in PhpStorm back in 2021, we knew there was plenty more work to be done in the future. Either go to Run | Edit Configurations or choose Edit Configurations from the search actions menu:Īlternatively, you can manually create new Rector configurations on the Edit Configuration screen as well. Since Rector is a run configuration, you have the option to configure it, as well. You can then review changes in PhpStorm, select individual files and folders, and finally apply all selected changes. PhpStorm can do this automatically for you: simply right-click the folder you want Rector to fix and then select Run | Rector:Īs you can see, PhpStorm will give you a list of files that Rector will change.

Next, you should create a new run configuration specifically for Rector. In order to use PhpStorm’s Rector support, you first need to install Rector and configure it. It’s an amazing tool, and we’re happy to provide built-in support in PhpStorm for it. Rector helps you with automatic PHP upgrades and code refactorings in bulk. With that said, let’s take a look at what’s new in the first EAP release of PhpStorm 2022.2! Rector support

In this first EAP build, you’ll get a chance to preview many new features related to generics, Rector support, and a bunch of quality-of-life improvements. Our Early Access Program (EAP) for PhpStorm 2022.2 starts today!
