Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TysonAndre opened this issue Mar 11, 2020 · 0 comments
Open

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

TysonAndre opened this issue Mar 11, 2020 · 0 comments

Comments

@TysonAndre
Copy link

/**
 * @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant