Skip to content

Squiz.WhiteSpace.FunctionSpacing.SpaceAfterLast should not apply if there is comment after the function. #2931

@VincentLanglet

Description

@VincentLanglet

With a config of one line between functions and 0 after the last one, I still expect to not have error with the following code:

interface Foo 
{
    /**
     * @return bool
     */
    public function bar();

    /**
     * Comment
     */
    // Comment
}

There is the same issue with

interface Foo 
{
    /**
     * Comment
     */
    // Comment

    /**
     * @return bool
     */
    public function bar();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions