I tried it in PHPStorm with macros, but that doesn't work: it would be nice to transform `$foo->test = 'ba';` to `$foo['test'] = 'bla';` and backwards. here my regex: `\-\>([\w]+)` replace `\[\'$1\'\]` and `\[[\"\']([\w]+)[\"\']\]` replace `->$1`
I tried it in PHPStorm with macros, but that doesn't work:
it would be nice to transform
$foo->test = 'ba';to
$foo['test'] = 'bla';and backwards.
here my regex:
\-\>([\w]+)replace\[\'$1\'\]and
\[[\"\']([\w]+)[\"\']\]replace->$1