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

Argument list across multiple lines #14

Open
boan-jfm opened this issue Feb 2, 2018 · 2 comments
Open

Argument list across multiple lines #14

boan-jfm opened this issue Feb 2, 2018 · 2 comments

Comments

@boan-jfm
Copy link

boan-jfm commented Feb 2, 2018

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
    }
}
@allebb
Copy link
Owner

allebb commented Feb 2, 2018 via email

@allebb
Copy link
Owner

allebb commented Mar 15, 2018 via email

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