![]() ![]() ![]() So the 2022.1 version of JetBrains’ IDE comes with several improvements to Vue 3. PhpStorm incorporates all the improvements for HTML/CSS/JS and other web technologies from WebStorm. Support array shapes with numeric keys Support specific arrays in object-like arrays Support lists in array shapes Support array shape annotations of variable usages Improvements to Vue See the PHPDoc example above and here is an attribute one:Īlong with the multiline and nested annotations support, there are many additional improvements for array shapes. The syntax is supported for return types and parameters type definitions. ![]() You can use booth PHPDoc and Attribute syntax in PhpStorm, whichever you prefer. In such cases, define the structure of arrays with array shape annotations to get the code completion for the keys and infer the value types. While PHP has a great object system, there could be times when defining a real class feels excessive and it’s more convenient to work with simple data structures or object-like arrays. In PhpStorm 2022.1, we are adding full support for multiline and nested array shapes in both PHPDoc and attributes! However, this still had no support for nested structures. To get multiline support, you had the option of using the # attribute. It came with a significant limitation, though – only single-line and single-level annotations were supported. In PhpStorm 2021.2, we introduced support for array shapes in PHPDoc blocks. You can also manually download the EAP builds from our website. The Toolbox App is the easiest way to get the EAP builds and keep your stable and EAP versions up to date. This blog post will cover enhanced support for array shape annotations that improve code completion for object-like arrays. The third build of our Early Access Program for PhpStorm 2022.1 is now available! ![]()
0 Comments
Leave a Reply. |