phpantom_lsp 0.7.0

Fast PHP language server with deep type intelligence. Generics, Laravel, PHPStan annotations. Ready in an instant.
Documentation
// test: mixin with static return type resolves to the consuming class
// feature: completion
// Adapted from phpactor reflection/mixin_static.test
// expect: sendMessage(
---
<?php

class A
{
    /**
     * @return static
     */
    public function doA()
    {
        return new static();
    }
}

/**
 * @mixin A
 * @method void sendMessage(string $text)
 */
class B
{
}

$b = new B();
$b->doA()-><>