Closed kupoback closed 3 years ago
I fixed it by downgrading guzzlehttp/psr version.
composer require guzzlehttp/psr7:^1.7
I fixed it by changing stream_for
to Utils::streamFor
in ClientCredentials.
Thanks @stsepelin, indeed it is deprecated.
Looking at the code, I see stream_for
became and alias for Utils::streamFor
and deprecated in Guzzle\Psr7 v1.7.0
:
/** @deprecated stream_for will be removed in guzzlehttp/psr7:2.0. Use Utils::streamFor instead.
*/
function stream_for($resource = '', array $options = [])
{
return Utils::streamFor($resource, $options);
}
I'll put in a conditional to resolve this. Thanks for reporting this @kupoback!
When I attempt to get an access token on the latest version of Guzzle,
^7.3
, it errors out giving me the following error:This is the method I've written, maybe I did something wrong, but dropping the Guzzle version to the latest v6, it works: