github icon indicating copy to clipboard operation
github copied to clipboard

Type error on `CombinedStatus->statuses()`

Open fcurella opened this issue 5 years ago • 1 comments

calling CombinedStatus->statuses() raises the following error:

Fatal error: Uncaught TypeError: Return value of ApiClients\Client\Github\Resource\Repository\Commit\CombinedStatus::statuses() must be an instance of ApiClients\Client\Github\Resource\Repository\Commit\Repository\Commit\Status, array returned in /workdir/vendor/api-clients/github/src/Resource/Repository/Commit/CombinedStatus.php:88

Shouldn't the return type be array instead of Status?

fcurella avatar Sep 21 '20 15:09 fcurella

Indeed it should be an array instead of a Status.

WyriHaximus avatar Sep 24 '20 16:09 WyriHaximus