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

False positive warning about opening bracket with inner classes #47

Open
lstrojny opened this issue Jan 14, 2018 · 0 comments
Open

False positive warning about opening bracket with inner classes #47

lstrojny opened this issue Jan 14, 2018 · 0 comments

Comments

@lstrojny
Copy link
Contributor

This is the code:

new class($gallery->getPhotoCount(), $limit, $offset) extends OffsetPagination
            {
                protected function getPrevRoute( // @codingStandardsIgnore
                    iterable $collection,
                    ?string $routeName,
                    array $routeParameters
                ): ?Route
                {
                    return null;
                }
            },

And this is the error:

FILE: ...terNations/Bundle/MediaBundle/DataMapper/Api/PhotoDataMapper.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 39 | ERROR | Opening bracket of "function getPrevRoute" must be in the
    |       | next line
    |       | (InterNations.Syntax.Braces.MissingNewlineFunctionBrace)
----------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant