1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// test: @method virtual method on trait appears in completion // feature: completion // Adapted from phpactor virtual_member/trait_method1.test // expect: sayHello( --- <?php /** * @method void sayHello() */ trait Feature { public function another(): void {} } class UseTrait { use Feature; } $obj = new UseTrait(); $obj-><>