Skip to content

Support magic methods and properties on class/trait/interface? #85

Open
@TysonAndre

Description

@TysonAndre
/**
 * @method int foo()
 * @method static Closure():void test()
 * @property-read int $val
 */
class X{}

Expected: Should generate tags for @method, @property, and @property-read/@property-write
Observed: doesn't.

A library I've seen used (by php-language-server) is https://github.com/phpstan/phpdoc-parser - I haven't used it, but it may be of help in parsing common but unofficial phpdoc union types. Haven't checked if it provides line number information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions