buffertools-php icon indicating copy to clipboard operation
buffertools-php copied to clipboard

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

Open javansolo opened this issue 9 years ago • 2 comments

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[] */

javansolo avatar Dec 19 '16 05:12 javansolo

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

afk11 avatar Dec 20 '16 22:12 afk11

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

javansolo avatar Dec 22 '16 21:12 javansolo