Type annotations don't work correctly
romanstingler opened this issue · 0 comments
romanstingler commented
when I use something like this in my tests
/** @var CEClient $ceClient */
$ceClient = $this->mock(CEClient::class);
everything works
but if I use
/** @var CEClient $ceClient */
$ceClient = $this->mock(CEClient::class, function (MockInterface $mock) {
$mock->shouldReceive('createFulfillment')
->andThrow(new Exception('Exception occurred'));
});
It doesn't recognize the type correctly,
In PHPStorm it works
PS: Closed you are not using anything this is the php intellisense plugin