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

Incorrect checking for PHP7 return types on multi-line function declarations #2579

Closed
theunrealmachine opened this issue Aug 9, 2019 · 2 comments

Comments

@theunrealmachine
Copy link

theunrealmachine commented Aug 9, 2019

Looks like this issue is not fixed: #781

protected function buildSelectForFinds(
    array $whereFields = [],
    array $order = [],
    ?int $limit = null
): \PDOStatement {

phpcs: There must be a single space between the closing parenthesis and the opening brace of a multi-line function declaration; found 0 spaces

@gsherwood
Copy link
Member

Your sample code does not produce that error for me, so I need some more information to see the problem.

What is the actual block of sample code you are using? What standard are you using? What PHPCS version are you using?

@theunrealmachine
Copy link
Author

Sorry, my bad, I was using old version of codesniffer. Updated with composer and the issue is gone.

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