phpantom_lsp 0.7.0

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

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

function foo(Baz &$bar): void
{
    $bar = new Baz();
}

foo($bar);

$bar-><>