PhpStorm 2019.1.2 Preview 191.7141.5

Every week brings you a fresh update to PhpStorm, and this one is no exception. Meet the preview for PhpStorm 2019.1.2! Try PhpStorm 2019.1.2 Preview build 191.7141.5 and share your feedback with us.

This Preview build brings with it important bug-fixes, performance and usability improvements, and regression fixes.

Notable updates:

  • Blade debug: Support new format of Blade debug info (WI-46191 +1)
    Laravel 5.8.11 has modified the Blade debug info format, so you’ll need to update PhpStorm to the current build to bring debugging Blade templates experience back.
    Thanks a lot to the Laravel community for help with this issue!
  • Fixed: Pieces of code disappear after formatting when using PHP 7.3 HEREDOC (WI-45986 +2)
  • Fixed: Wrong indent heredoc false positive for an empty line (WI-46117)

Check out the list of all PHP-related bug-fixes and improvements and the complete release notes with all changes in this build.


Download PhpStorm 2019.1.2 Preview build 191.7141.5 for your platform here:

Or just 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

Posted in Early Access Program | Tagged , | Leave a comment

Locating Dead Code

When facing legacy code, probably the first thing you want to do is clean it up. PhpStorm 2019.1 can help you with this, particularly by finding and removing dead code with the new Unused Declaration inspection. It will carefully analyze your code and data flow, and highlight the entities that are never used.

To get started, make sure that the inspection is enabled under Settings/Preferences | Editor | Inspections | PHP | Unused. Now, when you work in the editor, PhpStorm will only highlight unused classes, class members, and functions:

unused_declaration_editor

To locate and view all unreachable declarations (that are present in your code but are never executed at runtime), you need to run the inspection in batch mode. This will build the reachability graph in order to find unused code “clusters” throughout the selected scope. To do this, select either Code | Inspect Code… or Code | Run Inspection by Name… | Unused Declaration.

unused_decaration_run_by_name

As soon as the inspection runs, all of the found issues will be listed in the Inspection results:

unused_declaration_results

From here, you can start eliminating dead code by safely removing the affected elements, or commenting them out. If you hit a false positive or otherwise want to keep the element as it is, you’ll have two possible options:

  • Suppress the inspection, which will add the @noinspection tag for the given statement or the entire file.
  • Add the element as an entry point. By default, all code in the global scope as well as tests is treated as reachable. If you know that a method or function is executed, you may add it as an entry point. The code inside the entry point is now executed and reachable, as well.
    When you add an entry point, your source code files stay unaffected, and the element’s record is stored with the project under .idea\misc.xml.

We hope that with this new inspection, you’ll find that modernizing apps becomes a lot easier and less painful! Let us know how it goes and what works or doesn’t work for you!

Your JetBrains PhpStorm Team
The Drive to Develop

Posted in Cool Feature | Tagged , | 2 Comments

PhpStorm 2019.1.1 is released

PhpStorm 2019.1.1 build 191.6707.66 is now available!

We are happy to bring you the first update for the recently released PhpStorm 2019.1. The release has important bug fixes and improvements for PHP and the Web and takes on the latest improvements in IntelliJ Platform.

Continue reading

Posted in Release Announcements | Tagged | Leave a comment

Refactorings, Intentions & Quick-Fixes in PhpStorm 2019.1

Every PhpStorm release comes with lots of new refactorings, intentions, and quick-fixes, and PhpStorm 2019.1 is no exception.

In this release, we’ve enhanced the string juggling toolbox and made moving functions between files and classes easier. We’ve also added the new Method may be ‘static’ quick-fix, and provided a quick-fix for the Remove Unused Variable inspection.

Let’s look at these new features in more detail.

Continue reading

Posted in Cool Feature | Tagged , | Leave a comment

PhpStorm 2018.2.7 and PhpStorm 2018.3.6 are released

There’s a lot happening in PhpStorm 2019.1. Still not converted? No worries, we’ve got you covered: Today we are releasing the bug-fix updates for both PhpStorm 2018.2 and PhpStorm 2018.3. These updates bring important fixes to the platform.

Download the updates below or via our Toolbox App.
Continue reading

Posted in Release Announcements | Leave a comment

PhpStorm 2019.1.1 Preview 191.6707.42

We’re close to releasing PhpStorm 2019.1.1, the first minor update for PhpStorm 2019.1, and today we are ready to give you a second preview. Please try PhpStorm 2019.1.1 Preview build 191.6707.42 and share your feedback with us.

This Preview build brings with it important bug-fixes, performance and usability improvements, and regression fixes.

Here are notable changes since PhpStorm 2019.1:

  • Fixed updating plugins in an offline environment with a new marketplace and custom plugin repository (IDEA-205032 +29)
  • Fixed: cucumber.js support only sees steps written as regular expressions (WEB-15600 +27)
  • Fixed: When I open a task with “create branch” option checked IDE tires to create a branch twice in a row (IDEA-205194 +26)
  • Fixed: TypeScript / JavaScript: allow relative imports for files under path mappings (WEB-31972 +19)
  • Fixed: JVM crashes when creating vcs diff window (IDEA-208708  +12)
  • Fixed: Escape doesn’t move focus back to the Editor from Terminal tool window (IDEA-116221 +10)
  • Fixed: Oracle SQL completion no longer obeys identifier style (DBE-5640  +8)
  • expectedArguments and expectedReturnValues for overridden/implemented methods (WI-45824 +1)
  • Unused declarations: allow to exclude getters/setters or patterns (WI-45633 +1)

Check out the list of all PHP-related bug-fixes and improvements and the complete release notes with all changes in this build.


Download PhpStorm 2019.1.1 Preview build 191.6707.42 for your platform here:

Or just 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

Posted in Cool Feature | Tagged | 6 Comments

PhpStorm 2019.1.1 Preview

Last week we released PhpStorm 2019.1, and today we are ready to give you a preview of the first bug-fix update. Please try PhpStorm 2019.1.1 Preview build 191.6707.17 and share your feedback with us.

This Preview build brings with it important bug-fixes, performance and usability improvements, and regression fixes.

Here are some notable updates:

  • Fiixed updating plugins in an offline environment with new marketplace and custom plugin repository (IDEA-205032 +29)
  • Fixed: cucumber.js support only sees steps written as regular expressions (WEB-15600 +27)
  • Fixed: When I open a task with “create branch” option checked IDE tires to create a branch twice in a row (IDEA-205194 +26)
  • Fixed: TypeScript / JavaScript: allow relative imports for files under path mappings (WEB-31972 +19)
  • Fixed: Escape doesn’t move focus back to the Editor from Terminal tool window (IDEA-116221 +10)
  • expectedArguments and expectedReturnValues for overriden/implemented methods (WI-45824 +1)
  • Unused declarations: allow to exclude getters/setters or patterns (WI-45633 +1)

Check out the list of all PHP-related bug-fixes and improvements and the complete release notes with all changes in this build.


Download PhpStorm 2019.1.1 Preview build 191.6707.17 for your platform here:

Or just 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

Posted in Cool Feature | 5 Comments

PhpStorm 2019.1 released: Debug Twig and Blade, Locate Dead Code, Enjoy Improved Autocompletion, New Refactorings & Quick-Fixes, and more

PhpStorm 2019.1 is now available for you!

This major release brings with it support for debugging Twig and Blade templates, locating dead code, new and improved refactorings, intentions, and quick-fixes, enhanced performance and stability, and much more!

Explore the top new features and download PhpStorm 2019.1 on our website.

Continue reading

Posted in General Announcements, Newsletter, Release Announcements | Tagged | 43 Comments

PhpStorm 2019.1 Release Candidate is available

We are glad to announce that a PhpStorm 2019.1 Release Candidate is now available!
Please note: The RC closes the Early Access Program so you’ll need a valid PhpStorm license to use it.

See an overview of all PhpStorm 2019.1 features and download PhpStorm on our website to try it right away.

2019.1 RC

Notable changes since last build:

  • Fixed: With Angular2, path in templateUrl changes to path relative to current file on refactoring (WEB-21457 +7)
  • Fixed: NPE when starting a script with Docker Compose having ‘Connect to existing container’ selected (WI-45722 +1)
  • Changed “Method may be ‘static'” inspection severity to “No highlighting, only fix” (WI-45201 +1)
  • Updated predefined Laravel code styles to match current Laravel formatted code (WI-45561)
  • Completion now does not suggest already extended interfaces in interface extends list (WI-44611)

The full list of PHP-related fixes and improvements for the current build is available in our issue tracker and the complete change list is in the release notes.

Please share your feedback in the comments to this blog post, or on Twitter.

Thanks a lot for submitting reports to our issue tracker. After the release, we will announce a list of active EAPers and give out cool prizes!

Stay tuned as the public release of PhpStorm 2019.1 is coming very soon!

Your JetBrains PhpStorm Team
The Drive to Develop

Posted in Release Candidates | Tagged | 2 Comments

PHP Annotated Monthly – March 2019

PHP Annotated Monthly

Greetings everyone,

Welcome to the March edition of PHP Annotated Monthly, with all the latest news and notable materials from the world of PHP. In today’s issue read all about the PHP updates, and 5 new and 3 accepted RFCs from PHP Internals. There is also news from Laravel, Symfony, some async PHP stuff, useful tools, and a whole lot more!
Continue reading

Posted in PHP Annotated Monthly | Tagged , , , , | 3 Comments