Weird Indentation Issue
I'm having an issue with indentation that I can't seem to switch off.
When I do a function call like so there is no problem:
doSomething(
'string',
[
'key' => 'value'
]
);
But when a class function is called, it seems to want to double-indent the parameters and I can't find anywhere to switch it off.
$instance->someFunction(
'string',
[
'key' => 'value'
]
);
请先登录再写评论。
Hi Samuel,
Cannot reproduce, intendation looks the same in both cases:
Could you please revert to the Default Code Style theme for PHP and check if the issue persists?
Hi Eugene,
Thanks for your time. I can confirm the issue persists when using the Default Code Style.
I'm running PhpStorm 10.0.1 on Linux Mint.
Thanks,
Sam
I am able to reproduce it using this snippet. I type the function call up to and including the first round bracket and press the 'Enter' key to go to a new line. That line is double-indented.
I have no Mint to test, but Ubuntu 14.10 alongside with PhpStorm 10.0.3 doesn't show this behaviour.
Would you mind upgrading to 10.0.3?
If the issue persists after that, please do the following:
Hi Eugene,
I tried to update to 10.0.3 but the 'Release Notes / Download' button on the update window didn't do anything when clicked.
That said, I removed the old version and added the new version and the issue hasn't returned. So that's good.
Thanks very much for your help,
Sam