Dynamic method code style wrapping

Hi there community,

I'm facing a formating problem with dynamic methods.

In Code Style -> Wrapping and Braces in PHP separator I have Braces Placement on other configured to Next line, because I want my ifs and other operators braces to be on the next line.

The problem is when I have something like this:

$this->{$param} = $config[$key];

if I run the code format it becamos this:

{$param} = $config[$key];

Anyway to prevent this?


Comment actions Permalink

This is a bug. Could you please submit a bug report at http://youtrack.jetbrains.net. Thanks!

Comment actions Permalink

Hi Rustam,

Thank you for confirming my suspicions :)

Bug reported here: http://youtrack.jetbrains.net/issue/WI-6866


Please sign in to leave a comment.