PhpStorm 2021.1 EAP #3
The third build of our Early Access Program for PhpStorm 2021.1 is now available!
In this blog post, you can learn about PHP’s the new synthetic scope renaming feature for PHP.
Synthetic scope renaming
Though this is counterintuitive, in PHP loop constructs like
catch blocks do not have an isolated scope.
So in previous versions of PhpStorm, if you renamed a variable inside or outside of such a block, PhpStorm would try to rename it everywhere throughout the scope.
While this was technically correct, it was not convenient at all, especially if you just wanted to rename a variable inside a block.
So in PhpStorm 2021.1, we have introduced a synthetic scope for such blocks, and as a result, the rename refactoring (Shift+F6) will be more intuitive.
Name suggestion for typed properties
If you specified a type for your property during declaration, then PhpStorm will provide a name for it based on the type class name.
The full list of changes, including bug fixes and improvements, is available in the release notes.
- Important! 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 find to our issue tracker, or mention them in the comment section of this post.
Your JetBrains PhpStorm team
The Drive to Develop
Subscribe to Blog updates
Thanks, we've got you!
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…
PhpStorm 2023.2 EAP #4
This build includes a bunch of usability improvements, such as abilities to pin Run configurations and sort files by modification time in the Project view. The EAP allows you to try new features from the upcoming PhpStorm version, 2023.2. EAP builds are free to use and you can install them side b…