phpantom_lsp 0.7.0

Fast PHP language server with deep type intelligence. Generics, Laravel, PHPStan annotations. Ready in an instant.
Documentation
// test: enum with custom method appears in completion
// feature: completion
// Adapted from phpactor enum/custom_member.test
// expect: isA(
---
<?php

enum MyEnum: string
{
    case A = 'a';
    case B = 'b';
    case C = 'c';

    public function isA(MyEnum $case): bool
    {
        return $case === self::A;
    }
}

MyEnum::A-><>