PhpStorm 2022.2 EAP #5: @var in Return Statements, Enhanced HTTP Client, Docker Updates

Welcome back to the 2022.2 EAP series! If you’re unfamiliar with our Early Access Program, make sure to read this blog post. Let’s take a look at what’s new in this week’s EAP build.

Download PhpStorm 2022.2 EAP

Anonymous @var in return statements

You can now add an @var docblock before a return statement to specify the concrete return value of a function, without having to introduce a temporary variable.

Suggestion to enable Psalm and PHPStan plugins

PhpStorm will automatically detect whether you’re using Psalm or PHPStan annotations in your project and will suggest enabling the relevant Psalm or PHPStan plugins if they are disabled.

Spread parameters for callables

You can now define parameters with the spread operator in callable docblock types. PhpStorm will correctly highlight and infer types from those definitions.

Support for WebSockets endpoints in the HTTP client

Our HTTP client now supports websockets:

Support for GraphQL endpoints in the HTTP client

We also added support for GraphQL requests in the HTTP client. PhpStorm can now send GraphQL queries over HTTP and WebSockets protocols out of the box. For http:// and https://, simple HTTP requests are used, while ws:// and wss:// are delegated to the WebSocket executor.

UI/UX improvements for the HTTP client

We’ve introduced a couple of UI/UX improvements to the HTTP client. First, we’ve introduced a convenient way to select a run environment using an icon on the gutter. To enable this feature, choose the Select Environment Before Run option from the Run with combobox.

Second, we’ve improved the Response view by adding a progress bar that allows you to track the downloading process.

Docker auto-connection on IDE restart

PhpStorm now automatically connects to Docker after you restart the IDE. This new setting is enabled by default in Settings/Preferences | Advanced Settings | Docker.

Docker connection options for additional Docker daemons

PhpStorm is now integrated with Colima and Racher to support more options for establishing connections to Docker daemons.

The full list of changes in this build is available in the release notes.

PhpStorm EAP builds are not fully tested and may be unstable.You can install an EAP build side by side with a stable PhpStorm version to try out the latest features.EAP builds are free to use but expire 30 days after the build date.

Please report any problems you encounter by posting a ticket in our issue tracker or commenting on this post.

Download PhpStorm 2022.2 EAP

Your PhpStorm team

The Drive to Develop

The PhpStorm Blog : The Lightning-Smart IDE for PHP Programming | The JetBrains Blog
Read More