PhpStorm 2022.1 EAP #5
The fifth build of the PhpStorm 2022.1 Early Access Program comes with improvements for popular PHP template engines Blade and Twig.
Like other EAP builds, this build is free to use but it will expire 30 days after the build date.
Enhanced support for Blade templates
Previously, PhpStorm treated every code block in Blade templates as an independent scope. That caused many issues, as for example, losing code completion:
In PhpStorm 2022.1, we significantly reworked how the IDE handles Blade templates. As the result, you’ll get a way better code completion in your .blade.php files:
Many more issues with code completion and formatting in Blade templates were resolved as well:
- WI-37741 AutoCompletion of PHP Variables in Blade
- WI-34830 Blade: support namespaces in php
- WI-64460 Blade: missing completion for methods inside tags if there is php block ()
- WI-64463 Blade: two consecutive @php fragments are merged together and produce “expected: expression” warning “expected: expression” warning
- WI-31196 Blade: wrong formatting with html comments
- WI-40358 Blade: @section inside @if block throws “Directive is not closed”
- WI-64594 Blade: support @js directive
Check the full list on our issue tracker for more information.
We plan to continue this effort on improving Blade template engine support.
Improvements for Twig templates
Another popular template engine has also received improvements and fixed issues in PhpStorm.
A new option to disable close tag autocompletion
Some users prefer their Twig tags not to be closed automatically after typing {%. This behavior is now configurable under Preferences | Editor | General | Smart Keys | Twig.
Opening and closing tags will be also edited simultaneously now in case you want to update them from {% to {{ or vice versa.
For the full list of changes in this build, please see 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 by commenting on this post.
Your JetBrains PhpStorm team
The Drive to Develop