Closed tianyiw2013 closed 2 years ago
下面是另外一个兼容性问题,是上游guzzle-services的问题,这里引用一下PR:
https://github.com/guzzle/guzzle-services/pull/183
php8.1 传入Params时报错:http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated
$signedUrl = $cosClient->getObjectUrl(
$bucket,
$key,
'+10 minutes', //签名的有效时间
[
'ResponseContentDisposition' => '111',
'Params' => [ // Params中可以传自定义querystring
'aaa' => 'bbb',
'ccc' => 'ddd'
],
]
);
下面是另外一个兼容性问题,是上游guzzle-services的问题,这里引用一下PR:
php8.1 传入Params时报错:http_build_query():
Passing null to parameter #2 ($numeric_prefix) of type string is deprecated
$signedUrl = $cosClient->getObjectUrl( $bucket, $key, '+10 minutes', //签名的有效时间 [ 'ResponseContentDisposition' => '111', 'Params' => [ // Params中可以传自定义querystring 'aaa' => 'bbb', 'ccc' => 'ddd' ], ] );
感谢🙏
PHP 8.1: Passing null to non-nullable internal function parameters is deprecated