Backend Development 3 min read

PhpStorm 2022.1 EAP 3 Brings Multi‑line and Nested Array Shape Support and Vue 3 Enhancements

The PhpStorm 2022.1 Early Access Program release adds full multi‑line and nested array shape support in PHPDoc and attributes, introduces numeric‑keyed and class‑object array shapes, and brings extensive Vue 3 and Nuxt 3 improvements to the IDE.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
PhpStorm 2022.1 EAP 3 Brings Multi‑line and Nested Array Shape Support and Vue 3 Enhancements

Multi‑line and Nested Array Shapes

PhpStorm 2021.2 introduced array‑shape support in PHPDoc but was limited to single‑line and single‑level annotations. The third EAP of PhpStorm 2022.1 adds complete multi‑line and nested array‑shape support, which can be used via the #[ArrayShape] attribute or directly in PHPDoc.

With this capability, developers can define the structure of arrays to obtain code completion for keys and type inference for values.

Beyond multi‑line and nested support, the update adds several enhancements: support for numeric‑keyed array shapes, specific arrays inside class‑object properties, array‑shape lists, and the @var variable‑usage annotation.

Improvements for Vue

PhpStorm now incorporates all WebStorm 2022.1 improvements for Vue 3. When components are defined globally, the IDE recognizes them inside .vue files, and it fully supports the createApp syntax, correctly matching elements created with it.

This version also adds support for Nuxt 3.

Vue3BackendDevelopmentPhpStormArrayShapeIDEFeaturesPHPDoc
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.