phpactor icon indicating copy to clipboard operation
phpactor copied to clipboard

Hover on union type: ambiguous class base names

Open przepompownia opened this issue 3 years ago • 1 comments

image

Maybe to fix with the logic similar to #1838.

przepompownia avatar Aug 04 '22 16:08 przepompownia

this is done via. a Twig extension: https://github.com/phpactor/phpactor/blob/7ee57283e926539c3934dca0a91f3fea8bbb2d74/lib/Extension/LanguageServerHover/Twig/TwigFunctions.php#L15

I think the logic can be slightly different (i.e. not using the same code) but similar (it would act on "aggregate" types i.e. union or intersection)

dantleech avatar Aug 05 '22 07:08 dantleech