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

Types don't match #65

Open
NAragao opened this issue Sep 21, 2022 · 0 comments
Open

Types don't match #65

NAragao opened this issue Sep 21, 2022 · 0 comments

Comments

@NAragao
Copy link

NAragao commented Sep 21, 2022

$this->client = $client ?? $this->buildClient($access_token);

In the construct the parameter $client is asking for Http object, but $this->client by default will receive a PendingRequest.

If it's provided with a new Http client will explode.

Has an example in the function get() of the same class,
return $this->decodeResponse($this->client->get($url));

Http object isn't accessible this way.

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

1 participant