phpantom_lsp 0.7.0

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

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

class Foo {
    public function __construct(Baz &$bar)
    {
        $bar = new Baz();
    }
}

new Foo($bar);

$bar-><>