版本:v1.3.4
文件:/src/Qcloud/Cos/UploadBodyMiddleware.php
运行报错:Call to a member function signRequest() on null
看了下代码,好像是这个地方:
public function __invoke(RequestInterface $request, array $options) {
$fn = $this->nextHandler;
return $fn($this->signature->signRequest($request), $options);
}
是不是$this->signature没有进行初始化,v1.3.3是正常得,v1.3.4会报错。
版本:v1.3.4 文件:/src/Qcloud/Cos/UploadBodyMiddleware.php 运行报错:Call to a member function signRequest() on null 看了下代码,好像是这个地方: public function __invoke(RequestInterface $request, array $options) { $fn = $this->nextHandler; return $fn($this->signature->signRequest($request), $options); } 是不是$this->signature没有进行初始化,v1.3.3是正常得,v1.3.4会报错。