Skip to content

False positive with anonymous functions in Generic_Sniffs_WhiteSpace_ScopeIndentSniff #337

@oliverklee

Description

@oliverklee

The gist in https://gist.github.com/oliverklee/d5d80c176685de0874ea produces the following false positive:

class Testcase { private $subject; /** * @test */ public function recordLogin_changes_lastLogin_in_Db() { $this->mockedDatabase ->expects($this->once()) ->method('update') ->with( 'user', $this->callback( function () { return; } ) ); $this->subject->recordLogin(); } } 

Line indented incorrectly, expected at least 16 spaces, found 8

This is similar to #298 - I don't know whether this is a regression of that bug or just similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions