I have a class Foo with several methods. Some return built-in types (bool, string), others return objects (class Bar).
It seems like when prophesizing Foo, this plugin works for the methods that return built-in types but not objects with a custom class, or methods that return void.
$foo = $this->prophet->prophesize(Foo::class);
$foo->exampleReturnsBool()->willReturn(FALSE); // works great
$foo->exampleReturnsBar()->willReturn(new Bar); // PhpStorm complains "method willReturn not found in Bar"
$foo->exampleReturnsVoid()->shouldBeCalled(); // PhpStorm complains "void method exampleReturnsVoid result used"
I have a class Foo with several methods. Some return built-in types (bool, string), others return objects (class Bar).
It seems like when prophesizing Foo, this plugin works for the methods that return built-in types but not objects with a custom class, or methods that return void.