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.
@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.
This functionality is especially useful when you’re relying on static analysis tools that could mark some return values invalid when the underlying code doesn’t specify clear enough return types.
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
https://, simple HTTP requests are used, while
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 Rancher 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.
Your PhpStorm team
The Drive to Develop
Subscribe to Blog updates
Thanks, we've got you!
The PhpStorm 2023.3 Early Access Program Is Now Open
Today, we’re opening the Early Access Program (EAP) for the next version of PhpStorm! In this EAP, we’ve included part of the latest improvements provided in PHP 8.3, which is due to be released at the end of November, a New Project wizard for Symfony, and support for the conversion of Doctrine a…
PhpStorm 2023.2 Beta
In this build, we’ve added new inspections for PHP assertions and revised the integration with third-party quality tools.
PhpStorm 2023.2 EAP #6
This build brings improvements for generating PHPDocs, support for Laravel Pint, a single point of access to all PHP framework plugins, and much more!
AI Features in PhpStorm: PhpStorm 2023.2 EAP #5
The next EAP build for PhpStorm 2023.2 is now available, and it’s an exciting one! It is the first build to include features leveraging the enormous potential of generative AI and large language models (LLMs). Our Early Access Program (EAP) allows you to try new features from the upcoming PhpStor…