创建插件报错
php webman app-plugin:create blogcms
PS E:\www\webman\xuexi\webman> php webman app-plugin:create blogcms
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 E:\www\webman\xuexi\webman\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 E:\www\webman\xuexi\webman\vendor\webman\event\src\EventListCommand.php on line 29
看看是不是跟这个一样:https://www.workerman.net/q/13834
是一样的,切换到腾讯镜像,才升级成功。
尽量用官方源最好