The new PhpStorm 2017.3 EAP build (173.2290.12) is now available! You can download it here or via JetBrains Toolbox App. Or, if you have the previous PhpStorm 2017.3 EAP build (173.2099.16) installed, you should soon get a notification in the IDE about a patch update.
This build delivers new features, bug fixes, and improvements for PHP and the Web, and includes the latest improvements in IntelliJ Platform.
Quick fixes for Unhandled exception
In the previous EAP we made a new inspection Unhandled Exception with “Add @throws tag” quick fix. Now we’ve implemented other quick fixes for this inspection Surround with try/catch and Add ‘catch’ clause(s). Surround with try/catch action has also been updated and now adds the exact exception that can be thrown in the surrounded block and not the general Exception.
Inspection “Redundant @throws tag”
For cases when you’ve refactored your code and forgot to update PHPDoc, we’ve added a new inspection Redundant @throws tag. You can invoke either Remove @throws tag or Update PHPDoc quick fix to make a PHPDoc up-to-date.
Inspection “Redundant catch clause”
The last but by no means least inspection in the series of the new exception related inspections is “Redundant catch clause”. Now you will know when the exception you are trying to catch is actually never thrown and your catch block is redundant.
We hope that the new inspections will help you to keep exceptions under control!
Apart from new features, this build has many bug fixes, including these:
- Reload dictionary on externals changes (WI-27124)
- Navigate to file action should support fuzzier path search terms (IDEA-112841)
From the platform side the update brings:
- Switch Context when switching branches in git (IDEA-69150)
Download PhpStorm 2017.3 EAP 173.2290 for your platform from the project EAP page or click “Update” in your JetBrains Toolbox App. And please do report any bugs and feature request to our Issue Tracker.
Your JetBrains PhpStorm Team
The Drive to Develop