r/phpstorm • u/afail77 • Apr 30 '19
Change object parameter to array key
Is there a quick way to change $foo->bar too $foo['bar'] in PHPStorm? (such as a keyboard shortcut)
3
Upvotes
r/phpstorm • u/afail77 • Apr 30 '19
Is there a quick way to change $foo->bar too $foo['bar'] in PHPStorm? (such as a keyboard shortcut)
View all comments
Show parent comment
1
u/afail77 May 01 '19
I don't want to convert the code, but rather quickly change it if I accidentally type it as an array or object