phpactor: [WR] Docblock type hinting with FQN
/** @var \Phpactor\WorseReflection\Core\Inference\SymbolInformation $bar */
$bar = $baz;
$bar->
does not work, but importing SymbolInformation is fine.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 25 (3 by maintainers)
Feel free to re-open if this is still an issue or I misunderstood.
Not sure if this is related, but I had something like this:
When I tried auto completing
$this->user->I would getCould not find class "App\Http\FooController\App\User", but if I then imported theUserclass at the top everything worked as expected.Created https://github.com/phpactor/worse-reflection/pull/24/files
Trying to replace this code, but this is a quick fix.
Kind of related (I think):
Here, neither
$this->barnor$barin the constructor are recognized asAcme\Foo\Bar. So basically, it doesn’t support namespace importsuse Acme\Foo;(while it supports FQCN\Acme\Foo\Baror class importsuse Acme\Foo\Bar;).