krizalys / onedrive-php-sdk

OneDrive SDK for PHP
BSD 3-Clause "New" or "Revised" License
144 stars 66 forks source link

Undefined function when calling complete() on UploadSessionProxy class #107

Open wcs-gilliaard opened 1 year ago

wcs-gilliaard commented 1 year ago

Hello,

I discover the following bug when use this package with Guzzle 7 installed.

The code breaks because of the following lines: https://github.com/krizalys/onedrive-php-sdk/blob/98fa821697e4e8ec2720e47c62fd17b49fc38869/src/Proxy/UploadSessionProxy.php#L161-L163

I am getting undefined function stream_to This because of that function does not exists in the package the guzzle/psr7 that guzzle/http package is using. The function is moved to another location.

More information about that can be found in this issue: https://github.com/guzzle/psr7/pull/345

You can fix the issue by installing the guzzle/psr7 version 1.9