WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@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