composer update 后,在start启动服务一直报错

wangxing

问题描述

composer update 后,在start启动服务一直报错
这里详细描述问题

程序代码

Fatal error: Declaration of Webman\ThinkOrm\DbManager::instance(?string $name = null, bool $force = false): think\db\ConnectionInterface must be compatible with think\DbManager::instance(array|string|null $name = null, bool $force = false): think\db\ConnectionInterface in /www/wwwroot/webman/vendor/webman/think-orm/src/DbManager.php on line 37
Worker[2924782] process terminated with ERROR: E_COMPILE_ERROR "Declaration of Webman\ThinkOrm\DbManager::instance(?string $name = null, bool $force = false): think\db\ConnectionInterface must be compatible with think\DbManager::instance(array|string|null $name = null, bool $force = false): think\db\ConnectionInterface in /www/wwwroot/webman/vendor/webman/think-orm/src/DbManager.php on line 37"
PHP Fatal error:  Declaration of Webman\ThinkOrm\DbManager::instance(?string $name = null, bool $force = false): think\db\ConnectionInterface must be compatible with think\DbManager::instance(array|string|null $name = null, bool $force = false): think\db\ConnectionInterface in /www/wwwroot/webman/vendor/webman/think-orm/src/DbManager.php on line 37

composer.json

{
  "name": "workerman/webman",
  "type": "project",
  "keywords": [
    "high performance",
    "http service"
  ],
  "homepage": "https://www.workerman.net",
  "license": "MIT",
  "description": "High performance HTTP Service Framework.",
  "authors": [
    {
      "name": "walkor",
      "email": "walkor@workerman.net",
      "homepage": "https://www.workerman.net",
      "role": "Developer"
    }
  ],
  "support": {
    "email": "walkor@workerman.net",
    "issues": "https://github.com/walkor/webman/issues",
    "forum": "https://wenda.workerman.net/",
    "wiki": "https://workerman.net/doc/webman",
    "source": "https://github.com/walkor/webman"
  },
  "require": {
    "php": ">=8.1",
    "workerman/webman-framework": "^2.1",
    "monolog/monolog": "^2.0",
    "vlucas/phpdotenv": "^5.6",
    "illuminate/events": "^11.0",
    "webman/redis": "^2.1",
    "webman/captcha": "^1.0",
    "webman/console": "^1.2.13",
    "topthink/think-template": "^3.0",
    "qcloud/cos-sdk-v5": "^2.6",
    "tencentcloud/tencentcloud-sdk-php": "^3.0",
    "workerman/crontab": "^1.0",
    "webman/gateway-worker": "^1.0",
    "webman/redis-queue": "^1.3",
    "webman/think-orm": "^2.1"
  },
  "suggest": {
    "ext-event": "For better performance. "
  },
  "autoload": {
    "psr-4": {
      "": "./",
      "app\\": "./app",
      "App\\": "./app",
      "app\\View\\Components\\": "./app/view/components"
    }
  },
  "scripts": {
    "post-package-install": [
      "support\\Plugin::install"
    ],
    "post-package-update": [
      "support\\Plugin::install"
    ],
    "pre-package-uninstall": [
      "support\\Plugin::uninstall"
    ]
  },
  "minimum-stability": "dev",
  "prefer-stable": true
}
109 1 0
1个回答

升级下 webman/think-orm

  • 暂无评论
🔝