

Hundreds of code inspections verify your code as you type and inspect the whole project for possible errors or code smells. Automated refactorings that treat your code with care, helping to make global project settings easily and safely. The IDE provides smart code completion, syntax highlighting, extended code formatting configuration, on-the-fly error checking, code folding, supports language mixtures and more. It supports PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0, and PHP 8.1, provides on-the-fly error prevention, best autocompletion & code refactoring, zero configuration debugging, and an extended HTML, CSS, and JavaScript editor. Just like Blade, we have also been improving our Twig support.PhpStorm is a PHP IDE that actually gets your code. We plan to continue improving our Blade template engine support. You can see the full list of fixed issues in our issue tracker. WI-40358 Blade: inside block throws “Directive is not closed”.WI-25667 Blade: formatting blocks are not aligning if there is a HTML comment after a closing tag.WI-28285 Blade doesn’t indent nested statements when formatting.WI-31196 Blade: wrong formatting with HTML comments.WI-64463 Blade: two consecutive fragments are merged together and produce “expected: expression” warning.


Many other issues with code completion and formatting in Blade templates were resolved as well, including: You can now also import namespaces in your blade files, instead of always having to use FQCNs: As the result, you’ll get much better code completion in your Blade files: Namespace imports with autocompletion In PhpStorm 2022.1, we’ve significantly reworked how the IDE handles Blade templates. It caused many issues, such as losing code completion: Previously, PhpStorm treated every code block in Blade templates as an independent scope. Better psalm and generic annotation support.Improved support for autocompletion in Blade templates.Let’s dive in! What’s new? Frameworks and languages You can download PhpStorm 2022.1 here and read through this post to learn about all the new features and improvements inside. This new major PhpStorm release includes improved Blade and Twig support, added functionality to docblock type annotations and attributes, a bunch of new and useful inspections, several improvements to the editor, and more.
