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

#105 - array no multiline whitespace #106

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

kamilpiech97
Copy link
Member

@kamilpiech97 kamilpiech97 commented Nov 13, 2023

This should close #105.

Actual:

    public function getArray1(): array
    {
        return [

        ];
    }

    public function getArray2(): array
    {
        return [1

        => 2];
    }

    public function getClosure(): Closure
    {
        return fn() =>
            [];
    }

Expected:

    public function getArray1(): array
    {
        return [];
    }

    public function getArray2(): array
    {
        return [1 => 2];
    }

    public function getClosure(): Closure
    {
        return fn() => [];
    }

Fixed in composer.json scripts for running tests. From --colors always to --colors=always.

krzysztofrewak
krzysztofrewak previously approved these changes Nov 13, 2023
@kamilpiech97 kamilpiech97 merged commit 4ca2988 into main Nov 15, 2023
4 checks passed
@kamilpiech97 kamilpiech97 deleted the #105-array-no-multiline-whitespace branch November 15, 2023 11:08
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

Successfully merging this pull request may close these issues.

Empty array whitespace fixer
3 participants