phpactor
phpactor copied to clipboard
Hover on union type: ambiguous class base names

Maybe to fix with the logic similar to #1838.
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)