有没有办法将@method签名中的参数标记为phpDoc中的可选项?
像这样的东西:
/* * @method bool alloc() alloc(int $filesize [, string &$result]) Allocates space for a file to be uploaded */
php phpdoc
php ×1
phpdoc ×1