Skip to content

@return tag support #27

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

Open
rawaludin opened this issue Mar 4, 2016 · 3 comments
Open

@return tag support #27

rawaludin opened this issue Mar 4, 2016 · 3 comments

Comments

@rawaludin
Copy link

Any plan to add @return tag on function template?

@erickpatrick
Copy link

Well, at least for PHP 7 has the return type declaration which can ease the process, right?

@ianchanning
Copy link

This has been already requested in #10. There's comments in there about the issues with adding it. Seems that it likely won't get fixed unless someone submits a PR

@harmenjanssen
Copy link

harmenjanssen commented Feb 17, 2018

Note that it's still nice to have a tab-stop for the @return tag.
Replacing function.tpl with the following makes sure you can at least add the return type yourself:

/**
 * ${1:{{name}}}{{?func: vmustache#InitCounter("params", 1)}}
 *{{#parameters}}
 * @param  ${{{?func: vmustache#IncrementCounter("params")}}:{{type}}{{^type}}mixed{{/type}}} ${{name}}${{{?func: vmustache#IncrementCounter("params")}}}{{/parameters}}
 * @return ${{{?func: vmustache#IncrementCounter("params")}}:type}
 */

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

4 participants