Tag Archives: inspection

Configurable unchecked exceptions

In PhpStorm 2017.3, we’ve implemented several inspections that will help you eliminate unhandled exceptions and redundant @throws from your code. Initially, it was possible to exclude the \RuntimeException and \LogicException exceptions, as well as their derived classes, from the inspection … Continue reading

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

How to provide stubs for PhpStorm

We call PhpStorm “an IDE that actually ‘gets’ your code,” meaning that it provides completion, type inference, inspection, documentation pop-ups, and a lot more coding assistance. For all the Standard PHP Library components as well as for common extensions, this … Continue reading

Posted in Cool Feature, Newsletter | Tagged , , , | 4 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:


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 , | 10 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

Working with composer.json in PhpStorm

What makes PHP great is the community that is building frameworks, libraries and nice tools. And more. This awesome community brought us Composer, a dependency manager for PHP which lets us install and update packages from Packagist.org and makes it easy to … Continue reading

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

PHP Mess Detector in PhpStorm

PhpStorm comes with many inspections that help us analyze and improve the quality of our codebase. By using PHP Mess Detector (PHPMD), we can enable many additional code quality checks on our codebase: it can detect possible bugs, suboptimal code, … Continue reading

Posted in Cool Feature | Tagged , , , , , | 9 Comments

Using PHP Code Sniffer in PhpStorm

Team members may have different backgrounds and code style preferences. In code bases where no formal code style is used, it can become obvious who wrote which code because of different styles being used. Having to work on such code … Continue reading

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

Syntax highlighting of PHP inside JavaScript (and other languages)

From time to time we have to mix different programming languages in one file. If there is only one or two occurrences of these small, embedded language islands, using Language Injections is the way to go. But what if we … Continue reading

Posted in Cool Feature | Tagged , , , , , , | 6 Comments

Introducing PhpStorm Video Tutorials

A lot of PhpStorm users have been asking us to create a series of video tutorials. Today, we’re happy to announce the availability of about two hours of video tutorials around PhpStorm which Maarten has been working on for the … Continue reading

Posted in Cool Feature, Screencast | Tagged , , , , , , , | 1 Comment

Optimize Imports for PHP

Those of you who have already tried PhpStorm 6 might have noticed a lot of great additions to PHP imports support. In this post we would like to tell you about a long awaited feature: Optimize Imports for PHP.

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