You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I omit var name in @var annotation I do get a union (as in your example). If it's included (as it is in mine) menu only shows the first union member.
Activity
dantleech commentedon Jan 17, 2019
👍 catch typehint union is not supported yet (but looks like it's supported by the parser) https://github.com/phpactor/worse-reflection/blob/master/lib/Core/Inference/FrameBuilder/CatchWalker.php
dantleech commentedon Jan 17, 2019
Also in develop this seems to work:

Is there a specific scenario?
weirdan commentedon Jan 17, 2019
phpactorcompletion is used throughncm2, withphpactor/ncm2-phpactorbridgeInvoking completion directly from cli, I'm getting this:
So it does appear to be a problem with the phpactor itself.
Phpactor version: dev-develop@660eb584fcf228e627c94b1894b39e7b12a69a9b
weirdan commentedon Jan 17, 2019
If I omit var name in
@varannotation I do get a union (as in your example). If it's included (as it is in mine) menu only shows the first union member.dantleech commentedon Jan 19, 2019
phpactor/worse-reflection@5b2bb56
and
phpactor/worse-reflection@4892ffd