Skip to content

ScopeIndent can fail when multiple array closers are on the same line #723

@JulienPalard

Description

@JulienPalard

Depending on how I indent an array, I have a false positive on the next line:

<?php class foo { public function get() { $foo = ['b' => 'c', 'd' => [ ['e' => 'f'] ]]; return 42; } } 

In this one, I have a Line indented incorrectly; expected at least 16 spaces, found 8 [Generic.WhiteSpace.ScopeIndent.Incorrect] on the return keyword.

But this one pass:

<?php class foo { public function get() { $foo = ['b' => 'c', 'd' => [ ['e' => 'f']]]; return 42; } } 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions