bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.61k stars 94 forks source link

Incorrect indent after next line style chan call. #2848

Open xpader opened 5 months ago

xpader commented 5 months ago

Describe the bug We use next line style chain call usually when the chains is very long, and the new line chain is indent for one tab space, but after chain call ended, the next line code will keep indent like end chain indent width, not return back to the start of chain head indent width.

To Reproduce

$user = User::query()
    ->where('id', 100)
    ->where('status', 1)
    ->first();

    // new line start indent here
    echo $user?->nickname;

Expected behavior

$user = User::query()
    ->where('id', 100)
    ->where('status', 1)
    ->first();

// new line should indent at here
echo $user?->nickname;