phpantom_lsp 0.7.0

Fast PHP language server with deep type intelligence. Generics, Laravel, PHPStan annotations. Ready in an instant.
Documentation
// test: fluent interface method chaining with self return type
// feature: completion
// Adapted from phpactor WorseClassMemberCompletorTest chaining patterns
// expect: setName(
// expect: setAge(
// expect: build(
---
<?php

class Builder
{
    public function setName(string $name): self
    {
        return $this;
    }

    public function setAge(int $age): self
    {
        return $this;
    }

    public function build(): string
    {
        return '';
    }
}

$b = new Builder();
$b->setName('Alice')->setAge(30)-><>