connect-api-specification icon indicating copy to clipboard operation
connect-api-specification copied to clipboard

PHP SDK Contains Invalid DocBlocks Causing IDE-Errors

Open bartboy011 opened this issue 7 years ago • 0 comments

Hey all, the V1 api classes in the PHP SDK all have the method list{model}ithHttpInfo, whose docblock contains the following return declaration:

/**
 * @return Array of \SquareConnect\Model\V1Item[], HTTP status code, HTTP response headers (array of strings)
 */

This is invalid syntax and is telling static-analysis tools/PHPStorm that the return type of this method is SquareConnect\Api\Array, causing all sorts of issues. Can these docblocks be updated to the valid form please? Example below:

/**
 * @return array Array of \SquareConnect\Model\V1Item[], HTTP status code, HTTP response headers (array of strings)
 */

bartboy011 avatar Aug 17 '18 15:08 bartboy011