phpantom_lsp 0.7.0

Fast PHP language server with deep type intelligence. Generics, Laravel, PHPStan annotations. Ready in an instant.
Documentation
// test: nested trait members resolve through trait-use chain
// feature: completion
// Adapted from phpactor member-access/nested_trait.test
// expect: onTraitOne(
// expect: onTraitTwo(
// expect: onTraitThree(
---
<?php

trait TraitTwo {
    public function onTraitTwo(): string {}
    public function onTraitThree(): int {}
}

trait TraitOne {
    use TraitTwo;

    public function onTraitOne(): string {}
}

class One {
    use TraitOne;
}

$one = new One();
$one-><>