PhpStorm 2017.3 EAP 173.3188.26

The new PhpStorm 2017.3 EAP build (173.3188.26) 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.2941.8) 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.

Twig Formatting

This build brings improved Twig formatting that can now handle complex structures and provide correct indentations for them.

twig_formatter_2

Injections in Twig templates

In this build, we’ve implemented language injections for Twig custom tags and named blocks. To inject a language into named block or between custom tags, place caret inside {% customTag %} or {% block block_name %}, press Alt+Enter and select Inject language.

You can also create permanent injection rules in Settings|Editor|Language Injections by addition of Generic Twig rule. Just take a look at two predefined rules: block javascript and custom statement javascript.

twig_inject_3

Custom templates in Create New PHP Class dialog

To simplify the creation of different classes in a namespaced code we’ve extended New PHP Class dialog with the ability to select a custom PHP file template. That allows you to use ${NAMESPACE} variable in your template and take advantage of namespace completion and PSR-0/PSR-4 namespace detection during the creation of the class.

custom_class_template_2

Test methods generation

To avoid manual creation of test methods, we’ve implemented a method selector in Create New PHP Test dialog. You can select all, or just a couple of class method for which you’re going to provide tests and PhpStorm will generate you the test class and the test methods stubs.

new_tests

Codeception test generation

In addition to PHPUnit and PHPSpec tests, we’ve added Codeception Unit and Codeception Functional test types to Create New PHP Test dialog. That should simplify the creation of new Codeception tests, especially, with the feature described above: generation of test methods.

From the platform side the update brings:

  • Tasks: Shelve changes on context switching (IDEA-70996)
  • Display the content of unversioned files in the commit dialog (IDEA-156875)
  • Rest Client: support multipart/form-data (WEB-28563)
  • Docker: Add “Build” action for Dockerfiles (IDEA-172716)
  • Databases: Allow comparison of cells in data views(DBE-4582)

Apart from new features, this build has many bug fixes, including these:

  • “Make call dynamic” quick fix for static calls (WI-21620)
  • Find in Path dialog won’t close (Ubuntu 16.04) (IDEA-170103)

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

Download PhpStorm 2017.3 EAP 173.3188 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

This entry was posted in Early Access Program, Newsletter. Bookmark the permalink.
  • zema

    awesome
    big thanks for twig formatting

  • evll

    Formatting is wrong on the first screenshot for wrapperHtmlOptions e.g.

    • Maxim Kolmakov

      Good catch! We’re continue our working on Twig formatter so it’s not the final version.