amir9480/vscode-laravel-extra-intellisense

Type annotations don't work correctly

romanstingler opened this issue · 0 comments

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,

image

In PHPStorm it works

PS: Closed you are not using anything this is the php intellisense plugin