
This often caused issues with code completions and insights. Previously, PhpStorm treated every code block in Blade templates as an independent scope. Learn more Enhanced support for Laravel Blade templates The cursor will be active to edit the name of the new method. There will be no dialog, and a new method (or function) will be created right away in the editor.

No one likes pop-ups though, so now, in many cases, for extracting a method you can use the inplace refactoring instead. Previously, this would open a dialog for the refactoring configuration. In order to simplify code and create a new method, just select the piece of code and press ⌘+ ⌥+ M ( Cmd+ Alt+ M / Ctrl+ Alt+ M).

Learn more Inplace Extract Method refactoringĮxtract Method is one of the most used refactorings in PhpStorm. The syntax is supported for return types and parameter types. You can use both PHPDoc and Attribute syntax in PhpStorm, whichever you prefer. In PhpStorm 2022.1, we’ve added full support for multiline and nested array shapes in both PHPDoc and in # attribute!Īdd array shape annotations to get the code completion for the keys and infer the value types in simple array data structures or object-like arrays. However, only single-line and single-level annotations were supported.

JetBrains heeft kort geleden versie 2022.1 van PhpStorm uitgebracht en de belangrijkste veranderingen en verbeteringen die daarin zijn aangebracht kunnen hieronder worden gevonden: Multiline and nested array shapesĪrray shape support in PHPDoc blocks have been supported since PhpStorm 2021.2. Voor zakelijk en thuisgebruik zul je daarvoor moeten betalen, maar als de software wordt gebruikt voor onderwijs of niet-commerciële opensourceprojecten, is de licentie gratis. Voor het gebruik van PhpStorm is wel een licentie nodig. Voor een overzicht van de mogelijkheden verwijzen we naar deze pagina. PhpStorm is gericht op php en biedt on-the-fly-errorpreventie, autocompletion, coderefactoring en debugging, en kan ook overweg met html, css, Coffee- en JavaScript. JetBrains brengt verschillende ontwikkelomgevingen uit, zoals IntelliJ Idea gericht op Java, CLion gericht op C en C++ en DataGrip gericht op sql.
