#17 Convert Arrays to Short Syntax

To convert arrays using the traditional array() syntax to the shorthand [] syntax, place the cursor on the array and hit Alt+Enter to invoke the intention actions dialogue then select the Convert array to short syntax option.

If the array has nested arrays, PhpStorm will recursively update all the child arrays.

comments powered by Disqus