Wrapping Issue with PHP

Wrapping chained methods, doesn't work properly if there's a '?' character in php:

getUser()?->doSomething();

The above, coupled with "Wrap Always" in Chained Method Calls, becomes:

getUser()?

->doSomething();

The question mark should move down, or maybe the whole ?-> should move up?

Also, could there be a "Chop down always" like the "Wrap always"?

1 comment
Comment actions Permalink

Thanks for sharing this. Reported as https://youtrack.jetbrains.com/issue/WI-62605 - feel free to vote for or comment it in order to get notified about its updates.

0

Please sign in to leave a comment.