Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HighSpecific opened this issue Jul 15, 2022 · 9 comments
Closed

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

HighSpecific opened this issue Jul 15, 2022 · 9 comments
Labels
question The issue is more of a question than a request for new features or a report of broken features.

Comments

@HighSpecific
Copy link

报错信息:
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

@bachue
Copy link
Contributor

bachue commented Jul 15, 2022

PHP 8.1 目前尚未兼容

@bachue bachue added the question The issue is more of a question than a request for new features or a report of broken features. label Jul 15, 2022
@limingxinleo
Copy link

mark

@tianyiw2013
Copy link

#388

@neatstudio
Copy link

neatstudio commented Aug 12, 2022

同上,一堆异常

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

@season886
Copy link

同上,一堆异常

@tianyiw2013
Copy link

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

@bachue
Copy link
Contributor

bachue commented Aug 16, 2022

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

@limingxinleo
Copy link

预计什么时候可以发 release

@bachue
Copy link
Contributor

bachue commented May 12, 2023

@bachue bachue closed this as completed May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue is more of a question than a request for new features or a report of broken features.
Projects
None yet
Development

No branches or pull requests

6 participants