Skip to content

Argument list across multiple lines #14

@boan-jfm

Description

@boan-jfm

When the argument list is split across multiple lines, the closing parenthesis
and opening brace MUST be placed together on their own line with one space
between them.

https://www.php-fig.org/psr/psr-2/#44-method-arguments

Bug:

class ClassName
{
    public function aVeryLongMethodName(
        ClassTypeHint $arg1,
        &$arg2,
        array $arg3 = []
    )
   { // <--- should be on the above line, ) {
        // method body
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions