Haehnchen / idea-php-phpunit-plugin

IntelliJ IDEA / PhpStorm PHPUnit Enhancement Plugin
MIT License
55 stars 11 forks source link

Autocomplete not working in closures #38

Closed icanhazstring closed 4 years ago

icanhazstring commented 6 years ago

Hi there,

i noticed the autocomplete for prophecy and mockobjects are not working in closures.

As seen here: image

For easy copy paste:

$class = $this->prophesize(\Exception::class);
$class->getLine()->shouldBeCalled();

$closure = function() use ($class) {
    $class->getLine()->
};
Haehnchen commented 4 years ago

working now