phpantom_lsp 0.7.0

Fast PHP language server with deep type intelligence. Generics, Laravel, PHPStan annotations. Ready in an instant.
Documentation
// test: instanceof on unrelated concrete classes replaces rather than intersecting
// feature: completion
// expect: bark(
// expect_absent: canBeRefunded(
---
<?php

class MolliePayment {
    public function canBeRefunded(): bool { return true; }
}

class Dog {
    public function bark(): void {}
}

function test(MolliePayment $payment): void {
    assert($payment instanceof Dog);
    $payment-><>
}