phpctags icon indicating copy to clipboard operation
phpctags copied to clipboard

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

Open TysonAndre opened this issue 5 years ago • 0 comments

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

TysonAndre avatar Mar 11 '20 16:03 TysonAndre