Early Access Program

PhpStorm 2018.2.3 EAP 182.4323.64

It’s a start of Early Access Program for PhpStorm 2018.2.3, a minor update for the recently released PhpStorm 2018.2. A fresh build 182.4323.64 is available here, in JetBrains Toolbox App or, if you have installed PhpStorm 2018.2 and have “Early Access Program” channel selected in Settings->System Settings->Updates, you should soon get a notification in the IDE about a patch update.

This build delivers bug fixes and improvements for PHP and the Web, and takes on the latest improvements in IntelliJ Platform.

PHP 7.3 Support

The 3rd and the last beta of PHP 7.3 is already released. The GA of the new version of the PHP interpreter is expected somewhere in the mid-December.
PhpStorm is continuing to add support for new PHP features (WI-42883). In the previous build, we’ve delivered support for list reference assignment and instanceof behavior change. This time we are adding the trailing comma in function calls support.

Trailing comma in function calls

For a long time in PHP you could add a trailing comma in an array:

   $array = [
        'foo',
        'bar',
        'baz',
        'qux',
    ];

In PHP 7.3 it is possible to do same thing for function arguments list:

    var_dump(
        $foo,
        $bar,
        $baz,
        $qux,
    );

This works for method calls and closures as well:

    $foo = new Foo(
      'constructor',
      'bar',
    );
 
    $foo->bar(
      'method',
      'bar',
    );

This is especially handy when viewing diffs with every parameter located on a new line.

Note that this only works for function calls, but not function definition, so the following is not possible:

   // Parse error
    function bar($a, $b,) {
        //
    }

Quick-fix for adding missing extension to composer.json

In PhpStorm 2018.2 we’ve added the new Extension is missing in composer.json  inspection. It detects the usages of functions, constants, and classes that rely on PHP extensions not currently listed in composer.json.

Now, starting from 2018.2.3, you’ll be able to run a quick-fix for such issues: PhpStorm will add the corresponding extension record to composer.json for you.

extension_missing_quick_fix

Notable bug fixes and features worth mentioning:

  • More options creating Angular Cli project (WEB-27290)
  • Fixed: Cannot attach to remote nodejs after upgrade to 2018.2 (WEB-34537)

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


Download PhpStorm 2018.2.3 EAP build 1182.4323.64 for your platform:

Or click “Update” in your JetBrains Toolbox App.
Please report any bugs and feature request to our Issue Tracker.

Your JetBrains PhpStorm Team
The Drive to Develop

image description