For example here , I cant go-to hello function definition:
use vendor\Foo;
class Bar{
private $var;
public function __construct(Foo $var) {
$this->var = $var;
}
public function print(){
$text = $this->var->hello();
}
}
class Foo{
public function hello(){
return 'hello';
}
}
You need to phpdoc your property for now. The extension is not smart enough to infer this from the assignment in the constructor.
/** @var Foo */
thank you, and I hope this getting added in the future ..
tracking in bmewburn/intelephense#47
Most helpful comment
thank you, and I hope this getting added in the future ..