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!