phpantom_lsp 0.7.0

Fast PHP language server with deep type intelligence. Generics, Laravel, PHPStan annotations. Ready in an instant.
Documentation
// test: generic extends resolves template parameter
// feature: completion
// Adapted from phpactor generics/class_extend1.test
// expect: baz()
---
<?php

/** @template T */
class Bar {
    /** @return T */
    public function bar() {}
}

class Baz {
    public function baz(): void {}
}

/** @extends Bar<Baz> */
class Foo extends Bar {}

$foo = new Foo();
$foo->bar()-><>