Skip to content

PHP SDK Contains Invalid DocBlocks Causing IDE-Errors #111

Open
@bartboy011

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions