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

Indentation of string concatenation fails inside closure #555

Closed
cweiske opened this issue Jul 30, 2019 · 1 comment
Closed

Indentation of string concatenation fails inside closure #555

cweiske opened this issue Jul 30, 2019 · 1 comment

Comments

@cweiske
Copy link
Contributor

cweiske commented Jul 30, 2019

When a string is concatenated on multiple lines inside a closure, the indentation is wrong on the second line if the first line contains a concatenating dot:

<?php
someClosureHandling(
    function () {
        return 'a' . 'b'
                   . 'c';
    }
);

. 'c'; should be indented 4 characters relative to return, and not on the same position as the dot in the line above.

Should be:

<?php
someClosureHandling(
    function () {
        return 'a' . 'b'
            . 'c';
    }
);
@zonuexe
Copy link
Member

zonuexe commented Dec 17, 2023

Resolved in #777.

@zonuexe zonuexe closed this as completed Dec 17, 2023
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

2 participants