amir9480 / vscode-laravel-extra-intellisense

This extension adds extra autocompletion for laravel projects to VSCode.
https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.laravel-extra-intellisense
MIT License
3.44k stars 55 forks source link

Type annotations don't work correctly #100

Closed romanstingler closed 10 months ago

romanstingler commented 10 months ago

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