aliyun / alibabacloud-oss-sdk

The OSS SDK. Powered by Darabonba.
Apache License 2.0
20 stars 8 forks source link

/src/ViapiUtils.php 的29行read方法会报错 #270

Closed zdx0823 closed 2 years ago

zdx0823 commented 3 years ago

错误提示: Declaration of AlibabaCloud\Tea\OSSUtils\VerifyStream::read($length) must be compatible with GuzzleHttp\Psr7\Stream::read($length): string

看了下是继承的Stream文件216行是强类型声明,在/src/ViapiUtils.php加上 :string 就好了

github-actions[bot] commented 3 years ago

感谢您为阿里云 OSS SDK 提交宝贵的建议

franklin87 commented 2 years ago

错误提示: Declaration of AlibabaCloud\Tea\OSSUtils\VerifyStream::read($length) must be compatible with GuzzleHttp\Psr7\Stream::read($length): string

看了下是继承的Stream文件216行是强类型声明,在/src/ViapiUtils.php加上 :string 就好了

我怎么是把 :string 删了就好了

yndu13 commented 2 years ago

已支持,commit:https://github.com/aliyun/alibabacloud-oss-sdk/commit/7fc74f9fa2fe0f0203cc24e4db6612945d34bb6c