webman/event 和webman/console 有兼容问题

永不言弃

{
"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",
"webman/redis": "^2.1",
"illuminate/events": "^11.47",
"webman/think-cache": "^2.1",
"webman/captcha": "^1.0",
"symfony/translation": "^7.4",
"webman/rate-limiter": "^1.1",
"vlucas/phpdotenv": "^5.6",
"workerman/crontab": "^1.0",
"webman/console": "^2.1",
"php-di/php-di": "^7.0",
"webman/event": "^1.0"
},
"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
}

"webman/event": "^1.0" 运行报错

leo@LEOdeMacBook-Pro server % php webman start
PHP Fatal error: Declaration of Webman\Event\EventListCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Component\Console\Command\Command::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int in /Users/leo/www/core-base/server/vendor/webman/event/src/EventListCommand.php on line 29

Fatal error: Declaration of Webman\Event\EventListCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Component\Console\Command\Command::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int in /Users/leo/www/core-base/server/vendor/webman/event/src/EventListCommand.php on line 29

72 1 0
1个回答

six

既然 webman/event 和webman/console 有兼容问题 ,那就升级它俩呗

  • 永不言弃 3天前

    解决了,不要使用阿里云的代理,然后升级到新版本"webman/event": "^1.0.5" 就可以了

🔝