Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error on CombinedStatus->statuses() #74

Open
fcurella opened this issue Sep 21, 2020 · 1 comment
Open

Type error on CombinedStatus->statuses() #74

fcurella opened this issue Sep 21, 2020 · 1 comment

Comments

@fcurella
Copy link

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?

@WyriHaximus
Copy link
Member

Indeed it should be an array instead of a Status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants