Skip to content

Call to protected method xxx() #18

Description

@MP-okui
class Foo
{
    protected function bar()
    {
        echo 'bar';
    }
}

$mock = \Mockery::mock(Foo::class);
$mock
    ->shouldAllowMockingProtectedMethods()
    ->makePartial();

$mock->bar();

Call to protected method bar()

phpstan/phpstan v0.12.25
phpstan/phpstan-mockery v0.12.5

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