phpantom_lsp 0.7.0

Fast PHP language server with deep type intelligence. Generics, Laravel, PHPStan annotations. Ready in an instant.
Documentation
// test: static method by-ref parameter sets type on variable after call
// feature: completion
// After calling Foo::bar(&$baz) where $baz is typed as Qux, $baz should resolve to Qux
// expect: doWork(
---
<?php

class Qux {
    public function doWork(): void {}
}

class Foo {
    public static function bar(Qux &$baz): void
    {
        $baz = new Qux();
    }
}

Foo::bar($baz);

$baz-><>