Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect indent after next line style chan call. #2848

Open
xpader opened this issue Apr 9, 2024 · 0 comments
Open

Incorrect indent after next line style chan call. #2848

xpader opened this issue Apr 9, 2024 · 0 comments

Comments

@xpader
Copy link

xpader commented Apr 9, 2024

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant