Skip to content

Issue with Guzzle 6.5.3 #218

Open
Open
@yellow1912

Description

@yellow1912

Hello,

On the latest stable version of Guzzle, the PSR compatible methods are:

send
sendAsync

https://github.com/guzzle/guzzle/blob/aab4ebd862aa7d04f01a4b51849d657db56d882e/src/Client.php#L107

However, on Omni's Client, we are calling sendRequest method:

return $this->httpClient->sendRequest($request);

This will cause the Guzzle client to call the magic __call method which in turn will call the request method instead:

https://github.com/guzzle/guzzle/blob/aab4ebd862aa7d04f01a4b51849d657db56d882e/src/Client.php#L85

https://github.com/guzzle/guzzle/blob/aab4ebd862aa7d04f01a4b51849d657db56d882e/src/Client.php#L180

I'm not sure how this should be handled, perhaps we check for guzzle's version? Or check for Guzzle's class and the presence of the method sendRequest?

Metadata

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