Convert Arrays to Short Syntax

#17 Convert Arrays to Short Syntax

code, refactoring, intention actions

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.

Related Tips

Blog Comments powered by Disqus.