腾讯云cos 最新版TIP+8.1报错,有人遇到同样的情况吗?

浏览:620 发布日期:2022/02/05 分类:ThinkPHP6专区 关键字: composer V6.0.10LTS
During inheritance of ArrayAccess: Uncaught think\exception\ErrorException: Return type of GuzzleHttp\Command\Command::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 D:\BtSoft\wwwroot\main\vendor\guzzlehttp\command\src\HasDataTrait.php:26
Stack trace:
#0 D:\BtSoft\wwwroot\main\vendor\guzzlehttp\command\src\Command.php(9): think\initializer\Error->appError(8192, 'Return type of ...', 'D:\\BtSoft\\wwwro...', 26)
#1 D:\BtSoft\wwwroot\main\vendor\composer\ClassLoader.php(571): include('D:\\BtSoft\\wwwro...')
#2 D:\BtSoft\wwwroot\main\vendor\composer\ClassLoader.php(428): Composer\Autoload\includeFile('D:\\BtSoft\\wwwro...')
#3 D:\BtSoft\wwwroot\main\vendor\guzzlehttp\command\src\ServiceClient.php(72): Composer\Autoload\ClassLoader->loadClass('GuzzleHttp\\Comm...')
#4 D:\BtSoft\wwwroot\main\vendor\guzzlehttp\guzzle-services\src\GuzzleClient.php(81): GuzzleHttp\Command\ServiceClient->getCommand('Putobject', Array)
#5 D:\BtSoft\wwwroot\main\vendor\guzzlehttp\command\src\ServiceClient.php(153): GuzzleHttp\Command\Guzzle\GuzzleClient->getCommand('Putobject', Array)
#6 D:\BtSoft\wwwroot\main\vendor\qcloud\cos-sdk-v5\src\Client.php(282): GuzzleHttp\Command\ServiceClient->__call('Putobject', Array)
#7 D:\BtSoft\wwwroot\main\app\controller\Api.php(38): Qcloud\Cos\Client->__call('putobject', Array)
#8 [internal function]: app\controller\Api->addCosobject()
#9 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\Container.php(344): ReflectionMethod->invokeArgs(object(app\controller\Api), Array)
#10 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\route\dispatch\Controller.php(110): think\Container->invokeReflectMethod(object(app\controller\Api), object(ReflectionMethod), Array)
#11 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\Pipeline.php(59): think\route\dispatch\Controller->think\route\dispatch\{closure}(object(app\Request))
#12 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\Pipeline.php(66): think\Pipeline->think\{closure}(object(app\Request))
#13 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\route\dispatch\Controller.php(113): think\Pipeline->then(object(Closure))
#14 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\route\Dispatch.php(90): think\route\dispatch\Controller->exec()
#15 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\Route.php(772): think\route\Dispatch->run()
#16 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\Pipeline.php(59): think\Route->think\{closure}(object(app\Request))
#17 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\Pipeline.php(66): think\Pipeline->think\{closure}(object(app\Request))
#18 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\Route.php(773): think\Pipeline->then(object(Closure))
#19 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\Http.php(216): think\Route->dispatch(object(app\Request), object(Closure))
#20 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\Http.php(206): think\Http->dispatchToRoute(object(app\Request))
#21 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\Pipeline.php(59): think\Http->think\{closure}(object(app\Request))
#22 D:\BtSoft\wwwroot\main\app\middleware\Check.php(23): think\Pipeline->think\{closure}(object(app\Request))
#23 [internal function]: app\middleware\Check->handle(object(app\Request), object(Closure))
#24 D:\BtSoft\wwwroot\main\vendor\topthink\framework\src\think\Middleware.php(142): call_user_func(Array, object(app\Request), object(Closure))
最佳答案
评论( 相关
后面还有条评论,点击查看>>