Skip to content

Call to method PHPStan\Mockery\Type\Expects::never() on a separate line has no effect. #14

@spawnia

Description

@spawnia

The offending code looks like this:

        $gitlab = $this->mock(GitLabManager::class);
        $gitlab
            ->expects('repositories')
            ->never();

Reformatting does not change the error:

        $gitlab = $this->mock(GitLabManager::class);
        $gitlab->expects('repositories')->never();

My dependencies are the following:

        "mockery/mockery": "^1.3.1",
        "phpstan/phpstan-mockery": "^0.12.3",
        "nunomaduro/larastan": "^0.5.0",

Am i doing something wrong?

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