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

change phpDoc Correct for \BitWasp\Buffertools\Template::parse #44

Open
javansolo opened this issue Dec 19, 2016 · 2 comments
Open

change phpDoc Correct for \BitWasp\Buffertools\Template::parse #44

javansolo opened this issue Dec 19, 2016 · 2 comments

Comments

@javansolo
Copy link

phpDoc for method:
\BitWasp\Buffertools\Template::parse
change phpDoc Correct to :
/**
* Parse a sequence of objects from binary, using the current template.
*
* @param Parser $parser
* @return Buffer[]
*/

@afk11
Copy link
Member

afk11 commented Dec 20, 2016

If a template specifies a type that's an integer it'll return the integer in the array.

@javansolo
Copy link
Author

javansolo commented Dec 22, 2016

/**
* Parse a sequence of objects from binary, using the current template.
*
* @param Parser $parser
* @return Buffer[] | int[] | string[]
*/

this phpdoc useful in phpstorm or other IDE

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

2 participants