Category Archives: Cool Feature

Getting PhpStorm ready for Xdebug 2.6

When it comes to PHP debugging, Xdebug is the de-facto standard. With the 2.6 version released last week, it’s a good time to take a look at the new features. And since Xdebug has always been tightly integrated with PhpStorm, … Continue reading

Posted in Cool Feature, Newsletter | Tagged , | 2 Comments

Refactor your code to functional style with PhpStorm 2018.1

How many times you wrote code like this to achieve a simple purpose? Mapping values of an array:

Filtering:

Or reducing an array to some value:

The above code samples involve the imperative programming style, which is … Continue reading

Posted in Cool Feature | Tagged , | 9 Comments

Hunspell dictionaries support

PhpStorm is a polyglot IDE: it understands PHP, JS, CSS, HTML, and many other languages and will provide you with smart interpretation to assist you with writing your code. But what about human languages? English is the only language supported … Continue reading

Posted in Cool Feature, Newsletter | Tagged , | 3 Comments

PhpStorm 2017.3.2 EAP 173.4127

It’s a start of Early Access Program for PhpStorm 2017.3.2, a minor update for the recently released PhpStorm 2017.3. A fresh build 173.4127.13 is available here, in JetBrains Toolbox App or, if you have installed PhpStorm 2017.3 and have “Early Access Program” channel in Settings->System Settings->Updates, you should soon … Continue reading

Posted in Cool Feature | 1 Comment

Install PhpStorm with Snaps

Exciting news for Linux users: you can now use snaps to install PhpStorm builds. Snaps will update your app automatically, and you’ll always have a fresh PhpStorm build right out of the oven. Snaps are really easy to install and use. On Ubuntu 16.04 LTS or later, snaps come … Continue reading

Posted in Cool Feature, Tutorial | Tagged , , | 17 Comments

Twig handling improvements

PhpStorm provides native support for Twig templates, and with version 2017.3 it just got better. The Twig formatting mechanism now handles complex structures properly. It provides correct indentation for your code blocks and preserves it when copying and pasting code … Continue reading

Posted in Cool Feature, Newsletter | Tagged , , | 4 Comments

PHPUnit support enhancements

PhpStorm 2017.3 brings you several minor enhancements, allowing for more effective work with unit tests. The new Undefined PHPUnit data provider inspection detects a method that you’ve specified via the @dataProvider annotation but have not declared in unit tests yet. … Continue reading

Posted in Cool Feature, Newsletter | Tagged , , | Leave a comment

Test methods generation

PhpStorm 2017.3 makes it easier to create tests with all supported test frameworks. Previously available for PHPUnit tests only, test file templates will now assist you in creating Codeception Unit, Codeception Functional, and PHPSpec Specification tests.

Posted in Cool Feature, Newsletter | Tagged | 2 Comments

Bring exceptions under control

PhpStorm 2017.3 introduces several useful inspections and the corresponding quick-fixes for handling exceptions in your code. Unhandled exception Situations where executing your code will lead to a Fatal Error should be detected in advance and avoided. The new Unhandled exception … Continue reading

Posted in Cool Feature, Newsletter | 26 Comments

Nullability support

PHP 7.1 introduced support for nullable types. When declaring a parameter or a return value, you can prepend its type with “?” to explicitly state that it is nullable. This way, you permit the NULL value to be passed or … Continue reading

Posted in Cool Feature, Newsletter | Leave a comment