Skip to content

Squiz.Arrays.ArrayDeclaration.ValueNoNewline incorrectly detects nested arrays #383

@mhujer

Description

@mhujer

Each value in a multi-line array must be on a new line error is detected for array on the line 7 in the following snippet (which I think is formatted properly):

class Foo { public function getDecorators() { return array( 'ViewHelper', array( // <--- error here 'Foo', ), 'Errors', ); } } 

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