The code style in PhpStorm has been doing strange things to my array indentation. When creating a new array in a normal way
$array = [|] // The | marks my cursor
Then I press enter
$array = [
| // My cursor starts all the way there
]
When I reformat my code using CMD+ALT+K, the indentation is reset.
$array = [
| // To here
]
This happens in every file in my project. I have checked my code style preferences, I have set them to PSR1/PSR2 standard, and have checked every single option that has something to do with indentation/arrays.
This only happens to arrays, not to function declarations, class declarations and control structures.
Is anyone familiar with this problem and if so, is there a solution?
Settings->CodeStyle->PHP->Tabes and IndentThere are schemes fordefaultandprojectcheck them all.