Software Update: PhpStorm 2017.2

Spread the love

JetBrains releases several development environments, such as IntelliJ Idea targeting java, CLion targeting c and c++, DataGrip targeting sql and PhpStorm targeting php. PhpStorm supports php versions 5.3, 5.4, 5.5, 5.6, 7.0 and 7.1. It offers on-the-fly error prevention, autocompletion, code refactoring, debugging and can also handle html, css, coffee and javascript. For an overview of the possibilities, we refer you to this page. To use PhpStorm is a license necessary, for business and home use you will have to pay for it but when it is used for education or non-commercial open source projects the license is free. JetBrains has released PhpStorm 2017.2 with the following improvements:

What’s New in PhpStorm 2017.2

composer

  • New Composer actions – Now you can execute the actions Update Dependencies, Install Dependencies, Remove Dependencies, and Self-update directly from the IDE, without having to switch to the command line.
  • PhpStorm and composer.json settings synchronization – Since composer.json contains the most up-to-date information about project, the synchronization of new settings between PhpStorm and composer.json ensures that PHP Language Level, PhpStorm Source and Test folders exactly match the project settings and structure specified in composer. json. This significantly simplifies project configuration in PhpStorm.
  • Seamless work with composer global installation – Now you can use globally installed composer. PhpStorm detects whether you have it installed and simplifies project creation in case you do. You can also set globally installed composer for existing projects and make it default for all projects. All this will save you time that you spent on looking for the previously downloaded composer.phar or on downloading yet again composer.phar into the project.

PHP Runtime

  • Docker Compose – PHP interpreter based on Docker Compose is now supported in PhpStorm. Now you don’t have to duplicate all settings, such as volumes, networks, environment variables, and others, from docker-compose.yml to PhpStorm. Docker Compose based interpreter includes all the familiar features of remote interpreters, so you can run/debug PHP code, and execute/debug PHPUnit, Codeception, Behat and PHPSpec tests.
  • Detection of enabled/disabled extensions for PHP interpreter – In the previous PhpStorm release, we made it possible to configure which PHP extensions are used in the project. We’ve now added automatic detection of enabled/disabled extensions from the selected PHP interpreter. This will help you synchronize your project extension settings and extensions that are actually installed in your PHP distributive. The feature works for local PHP interpreters and for all types of remote ones as well.
  • Preserve state of Start Listening for PHP Debug Connection option – In PhpStorm 2017.2, if you had Start Listening for PHP Debug Connection enabled in a project, the option will be restored on project reopening. This will help you avoid situations where debugging doesn’t work because you forgot to enable the option.

PHP Language Support

  • Reworked polymorphic types support – We’ve completely reworked support for polymorphic types, such as $this, static, self and parent. This fixes many related issues, for instance, missing type in chain call if a method has a double return type, lost type with new static() call if method from base class returns $this, returning self in traits not resolved correctly, and many others. In addition, we’ve improved support for composed traits.
  • Better refactoring for PHP 7/7.1 – PhpStorm 2017.2 brings better refactoring for PHP 7/7.1. In particular, return types are now supported for the Change Signature refactoring, and the Extract Constant refactoring now allows you to use visibility level for constants.
  • $this highlighting – In PhpStorm 2017.2, when you place your caret on $this, PhpStorm highlights all usages of this variable across the whole class. It can be extremely helpful as you can easily see all the usages of the variable.
  • New inspections – PhpStorm 2017.2 bring new handy inspections, such as
    • Statement has empty body inspection
    • Usage of strict_types declaration for PHP 7 and higher
    • Method declaration of super class is incompatible with implemented interface

Testing

  • Automatically run PHPUnit tests – In PhpStorm 2017.2, you can re-run PHPUnit tests automatically with a specified delay. Enable auto-run for a particular configuration, set the delay value, and your tests will be re-run automatically with that delay after you stop editing a file.
  • Unified Test Frameworks settings – We continue to simplify and unify PhpStorm settings. In this small but pleasant update, PHPUnit, Behat, PHPSpec, and Codeception testing frameworks have a single settings page.

Improved PHP Formatting

  • New formatting options – PhpStorm 2017.2 brings new useful code style options:
    • Spaces around null coalescing operator
    • New formatter options for blank lines
    • New parenthesis options for if statements
    • Separate option for brace placement for closures
    • New Return type on new line option

Web Technologies Support

  • Support for enhanced webpack module resolution – Coding assistance in JavaScript files now respects webpack module resolution. This means that now, if you’re using a complex webpack configuration with aliases and multiple modules, PhpStorm will properly resolve the import statements.
  • Import from ESLint – You can now import some ESLint code style rules to the IDE’s JavaScript code style settings. Reply ‘Yes’ when prompted about this in the .eslintrc file to apply the matched rules and make the IDE formatting more consistent with your ESLint configuration.
  • Rearrange code for JavaScript and TypeScript – The new code style options allow you to configure how different blocks of code such as the constructor, fields and methods are ordered in your JavaScript and TypeScript classes. Call the Rearrange Code action or use it together with Reformat Code to make code more readable and consistent.
  • As usual, all the features and improvements of WebStorm are available in PhpStorm, either out of the box or with free plugins available in the repository. Other noteworthy web-related features include support for Angular Material, parameter hints and type info in TypeScript, move symbol refactoring, and other.

IDE Improvements

  • Version control – Version control comes with the following changes:
    • Reverting and rewording commits
    • Formatting commit messages
    • Reworked Shelf
  • Find in Path improvements – The Preview panel in Find in Path now has a “gutter” – a left-side pane like that in the editor – with line numbers, navigation icons, and local change markers. In addition, search results from the same lines are now merged together.
  • Pause indexing – The indexing process now can be paused, for instance, if you need your CPU power for an urgent task.

Database Tools

  • Improvements in database tools – Database tools in PhpStorm have been improved thanks to our colleagues on the JetBrains DataGrip team:
    • Several databases in one PostgreSQL data source
    • Get notified when a large query is finished
    • Transaction Control

Other improvements:

  • Unified settings for PHP frameworks
  • SSH Agent support
  • Create new field/method actions for PHP UML diagrams
  • Better HiDPI support

Version number 2017.2
Release status Final
Operating systems Windows 7, Linux, macOS, Windows 8, Windows 10
Website JetBrains
Download
License type Freeware/Paid
You might also like