qiniu/php-sdk

在php8.1下 回报During inheritance of ArrayAccess错误

Closed this issue · 9 comments

报错信息:
During inheritance of ArrayAccess: Uncaught think\exception\ErrorException: Return type of Qiniu\Http\Header::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .../vendor/qiniu/php-sdk/src/Qiniu/Http/Header.php:114

PHP 8.1 目前尚未兼容

同上,一堆异常

PHP Deprecated:  Return type of Qiniu\Http\Header::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/qiniu/php-sdk/src/Qiniu/Http/Header.php on line 114
PHP Deprecated:  Return type of Qiniu\Http\Header::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/qiniu/php-sdk/src/Qiniu/Http/Header.php on line 125
PHP Deprecated:  Return type of Qiniu\Http\Header::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/qiniu/php-sdk/src/Qiniu/Http/Header.php on line 141
PHP Deprecated:  Return type of Qiniu\Http\Header::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/qiniu/php-sdk/src/Qiniu/Http/Header.php on line 154
PHP Deprecated:  Return type of Qiniu\Http\Header::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/qiniu/php-sdk/src/Qiniu/Http/Header.php on line 163
PHP Deprecated:  Return type of Qiniu\Http\Header::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/qiniu/php-sdk/src/Qiniu/Http/Header.php on line 175

php version

PHP 8.1.8 (cli) (built: Jul  7 2022 02:58:10) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.8, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.8, Copyright (c), by Zend Technologies

同上,一堆异常

@Mei-Zhao @xwen-winnie 你好,麻烦合并一下啊 #388

@tianyiw2013 QA 还在测试,等完成后会合并的

预计什么时候可以发 release