Early Access Program

PhpStorm 2017.2 EAP 172.3198

The new PhpStorm 2017.2 EAP build (172.3198.4) is now available! You can download it here or via JetBrains Toolbox App. Or, if you have the previous PhpStorm 2017.2 EAP build (172.3095.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 takes on the latest improvements in IntelliJ Platform.

PHP Language Level detection from composer.json

To simplify project configuration we’ve added a new feature to Composer integration. It detects required PHP from composer.json and set PHP Language Level accordingly in PhpStorm project. We support many formats like >=5.5.9,^5.6 || ^7.0 and~5.6|~7.0. 

detect_php

Extract constant refactoring allows choosing visibility level for PHP 7.1

Extract constant refactoring now allows you to use PHP 7.1 new feature – visibility level for constants. This can help you to make it more clear what is important and avoid exposing unnecessary constants. You can also define private magic numbers and bitmasks instead of public and thus achieve better encapsulation.

constant_visibility_3

New inspection: Statement has empty block

In this build, we’ve implemented a new inspection – Statement has empty block (can be found at Settings|Editor|Inspections|PHP|Probable bugs). The inspection should help you to detect accidental semicolon after foreach, while or if statements as well as find empty statements that do nothing. There are a couple of options to fine-tune the inspection: Comments count as content and Ignore while loop without body.

empty_statement

Other features worth mentioning:

  • Quick Fix “Remove unused parameter” now updates function calls
  • Simplified PHP settings page

See the full list of bug-fixes and improvements in our issue tracker and the complete release notes.


Learn more about other new features in PhpStorm 2017.2:


Download PhpStorm 2017. 2 EAP 172.3198 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

image description