Skip to content

php8.1上传视频报错 #406

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
wds7788 opened this issue May 12, 2023 · 3 comments
Closed

php8.1上传视频报错 #406

wds7788 opened this issue May 12, 2023 · 3 comments

Comments

@wds7788
Copy link

wds7788 commented May 12, 2023

During inheritance of JsonSerializable: Uncaught think\exception\ErrorException: Return type of MyCLabs\Enum\Enum::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /opt/wwwroot/ke.mingziwang.cn/vendor/myclabs/php-enum/src/Enum.php:200\nStack trace:\n#0 /opt/wwwroot/ke.mingziwang.cn/vendor/myclabs/php-enum/src/Enum.php(18): think\initializer\Error->appError()\n#1 /opt/wwwroot/ke.mingziwang.cn/vendor/composer/ClassLoader.php(480): include('...')\n#2 /opt/wwwroot/ke.mingziwang.cn/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile()\n#3 /opt/wwwroot/ke.mingziwang.cn/vendor/qiniu/php-sdk/src/Qiniu/Enum/QiniuEnum.php(12): Composer\Autoload\ClassLoader->loadClass()\n#4 /opt/wwwroot/ke.mingziwang.cn/vendor/composer/ClassLoader.php(480): include('...')\n#5 /opt/wwwroot/ke.mingziwang.cn/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile()\n#6 /opt/wwwroot/ke.mingziwang.cn/vendor/qiniu/php-sdk/src/Qiniu/Enum/SplitUploadVersion.php(5): Composer\Autoload\ClassLoader->loadClass()\n#7 /opt/wwwroot/ke.mingziwang.cn/vendor/composer/ClassLoader.php(480): include('...')\n#8 /opt/wwwroot/ke.mingziwang.cn/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile()\n#9 /opt/wwwroot/ke.mingziwang.cn/vendor/qiniu/php-sdk/src/Qiniu/Storage/ResumeUploader.php(90): Composer\Autoload\ClassLoader->loadClass()\n#10 /opt/wwwroot/ke.mingziwang.cn/vendor/qiniu/php-sd

php8.1上传视频报错,php8.0正常

@wds7788
Copy link
Author

wds7788 commented May 12, 2023

"qiniu/php-sdk": "^7.7"

@lihsai0
Copy link
Collaborator

lihsai0 commented May 12, 2023

感谢反馈!

已于 #405 修复,请等待新版本发布。

@bachue
Copy link
Contributor

bachue commented May 12, 2023

@pasawu 可以尝试下 https://packagist.org/packages/qiniu/php-sdk#v7.9.0

@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
None yet
Projects
None yet
Development

No branches or pull requests

3 participants