If I do a get call to the orders endpoint for example, it seems to return an array but the phpdoc says stdClass. The change that led to this documentation seems to have come in https://github.com/woocommerce/wc-api-php/pull/286
This gives us problems as phpstan reports errors based on the return type expected. Is the correct return type array or should it be returning an stdClass?
If I do a
get
call to theorders
endpoint for example, it seems to return an array but the phpdoc saysstdClass
. The change that led to this documentation seems to have come in https://github.com/woocommerce/wc-api-php/pull/286This gives us problems as phpstan reports errors based on the return type expected. Is the correct return type array or should it be returning an
stdClass
?