Convert php arrays with new syntax

I am looking for a way (regex, snippet, plugin, etc.) to convert old arrays with new php syntax with sublimeText.

// Old synthax
$var = array(
   'foo' => 'bar' 
);

// New synthax
$var = [
   'foo' => 'bar'
];

Does anyone have an idea?

+4
source share
1 answer
+4
source

Source: https://habr.com/ru/post/1543078/


All Articles