Phpstorm 2019 2 2

Posted on  by

PhpStorm has supported it since 2019.2. Let’s take another look at it, as in this release we’ve fixed a few issues with it and covered some corner cases. First of all, PhpStorm will, of course, highlight type violations: It is more likely than not that you will want to quickly add type declarations for your properties. PhpStorm 2019.1.2 build 191.7141.52 is now available! In this second minor update for the PhpStorm 2019.1 we are happy to bring you support for Composer via Docker. This release also contains a.

News

JetBrains PhpStorm 2019.2.2. Categories: Software » Windows. JetBrains PhpStorm 2019.2.2 286.8 Mb. PhpStorm is a PHP IDE that actually ‘gets’ your code.

PhpStorm 2019.2.2 build 192.6603.42 is now available!

In this second minor update for PhpStorm 2019.2, we are happy to bring you improved type inference and parameters info tooltip, as well as a bunch of other bugfixes and improvements for PHP, the Web, and all the latest improvements made to the IntelliJ Platform.

Improved Type Inference

We’ve made a lot of changes in the PHP type inference system, which affect the handling of $this/self/static return types. The following long-standing issues, as well as many others, are now fixed:

  • WI-28728 +18 Fixed: No code completion in foreach loop if array of object is generating from static method with static array type hint
  • WI-18067 +18 Fixed: Late Static Bindings errors on calls in non-static context
  • WI-38803 +13 Fixed: PHP 7 self return type incorrectly analyzed in chained method calls
  • WI-29051 +12 Fixed: $this[] static[] as return type breaks chained type hinting for variable with element access

Detailed Parameter Description

Have you ever wondered what exactly should be passed to the function or method as an argument? Previously you had to open Quick Documentation and scroll to the parameter description. Now you can press CTRL+P/CMD+P (Parameter Info) and view the description right away.

Try it when you don’t remember what should go in that place:

Other notable changes:

  • Fixed: IDE opens on a last known location when external monitor is detached: outside of screen (IDEA-153291 +36)
  • Fixed: Stretch left keybinding doesn’t work (IDEA-218926 +14)
  • Fixed: Nested sources folder not showing in Project view after updating to 2019.1 (IDEA-215752 +14)
  • Fixed: Enter Full Screen & Exit Full Screen does not execute when invoked via find action (IDEA-192504 +13)
  • Fixed: Exception occurs on applying “Show F1, F2, etc. keys on the Touch Bar” option (IDEA-202927 +12)
  • Automatically escape special symbols for “Find” and “Find in Path” dialogs if “Regex” (“Regular Expression”) is checked (IDEA-109899 +12)
  • Fixed: Xdebug 2.6.1 Profiler snapshot not opening (WI-44833 +8)
  • Fixed: Docker exec tab does not correctly wrap (IDEA-179900 +8)
  • Fixed: Freeze on project opening (IDEA-220475 +6)

You can find the full list of bugfixes and improvements in the release notes.

Download PhpStorm 2019.2.2 build 192.6603.42 for your platform on the website or click Update in your JetBrains Toolbox App.

We appreciate you reporting any bugs and feature requests to our Issue Tracker.

Your JetBrains PhpStorm Team
The Drive to Develop

Early Access Program

PhpStorm 2019.2 is shaping up well and today we have the fifth EAP installment for you. In this build, we’re introducing a new popup-less commit flow for VCS, and an intention action to quickly convert comma-separated lists from a single line to multiline and vice versa.
As usual, it incorporates all the latest updates from Web, DB, and the IntelliJ Platform, too.

Download PhpStorm 2019.2 EAP from the EAP page or via the JetBrains Toolbox App. Or, if you have the previous PhpStorm 2019.2 EAP build installed, you should soon get a notification in your IDE about a patch update.

New Intentions

Quickly convert a single line list to multiline, and back

Sometimes you have a long array written on one line, which grows and grows and runs off the screen. Sometimes the function argument names are too long to fit. Or you’ve refactored a method and reduced its list of parameters that were written down on multiple lines. In these kinds of situations, you will probably want to quickly reformat your code so that it either places each item on a separate line or, on the contrary, joins all items into one line.

PhpStorm 2019.2 comes with a neat new intention to do that. Just put the cursor on one of the coma-separate elements in the list, press Alt+Enter, and choose the action you need: “Split comma-separated values into multiple lines” or “Join comma-separated values into a single line”.

This works anywhere in PHP for arrays, argument lists, and parameter lists.


By the way, here you may need to fix your code style settings. Select the region in which you don’t like the code style, press Alt-Enter, and choose “Adjust code style settings”. For your ease, PhpStorm will offer to update only those settings that affect the selected lines:

Phpstorm 2019 2 2 release

Intention and inspections for Switch statement

Firstly, it is now possible to add branches faster by copying existing ones and then modifying them. Press Alt-Enter on the body-less case statement and choose “Copy ‘switch’ branch”.
Don’t forget to modify a copied one, because PhpStorm will warn you if a switch block has a duplicated branch, i.e. the same body, which can either be redundant or written by mistake:

Also, PhpStorm 2019.2 if you have a switch statement without a default branch in your code, you can quick-fix this with Alt-Enter as well:

VCS

In the status bar, you may have noticed the VCS section. It will usually show the branch name or commit hash where you are right now. If you click on it, you’ll see a list of available branches. Use it to quickly check-out to the branch you need, or create a new one.

In PhpStorm 2019.2, we’re making a couple of useful improvements here.

Improved Compare Branches action

When you compare two Git branches (by using the ‘Compare with Current’ action from the Git Branches popup menu), the IDE will display a Log tab which will lists all commits that exist in one branch and do not exist in the other.

Show Diff with Working Tree action

One more improvement in this area is that we’re adding a separate action called “Show Diff with Working Tree” to the Git Branches popup. It will provide you with the ability to view the Diff between the current and selected branches.

Commit from the Local Changes

Let’s say you have made a bunch of changes in files under different folders in your project hierarchy. To commit them, you go to the Local Changes tab in the Version Control tool window. You select the files and then see another popup to type in a commit message. At this point, you’re blocked by the popup and cannot see your project.

Phpstorm 2019 2 2 Torrent

2019

The upcoming PhpStorm 2019.2 lets you commit directly from the Local Changes. There is no longer any need to go through a separate Commit dialog!

Phpstorm 2019 2 2 Release

Now while working on a commit, you will be able to browse through the source code, view the history for a specific file, view the diff for the file in the same area as the commit, and use the other features of the IDE. Previously, all these actions were impossible because the modal commit dialog blocked off all the other IDE functionality.

If you use Git or Mercurial, there’s an additional perk. When you press the Commit shortcut (Cmd-K), the IDE will select the modified files for the commit and focus on the Commit message field in the Local Changes tab of the Version Control tool window. You will be able to review the selected files and change the file or code chunk.

More commit options will be available under the settings icon on the Commit toolbar; these can be invoked on demand.

This is a long-awaited feature, but it also affects the current workflow. If you’d like to go back to the original Commit dialog, deselect the “Commit from the Local Changes without showing a dialog” checkbox under Preferences Settings Version Control Commit Dialog.

For the full list of changes in this build, please see the release notes.

Please report any problems to our issue tracker or comment on this post. Your feedback is much appreciated!

Check out previous EAP blog posts for more:

Your JetBrains PhpStorm Team
The Drive to Develop