国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

webman-console依賴的symfony-console版本升級(jí)到7.0后導(dǎo)致的兼容性問題

鄧靖

webman-console依賴的symfony-console是寫的>=5.0, 我們安裝依賴的時(shí)候拉取到了symfony-console的7.0版本, 目前看會(huì)有4個(gè)問題:

  1. execute()方法強(qiáng)制約束了返回值為: int
  2. addUsage()方法的時(shí)候, 如果沒有setName(), 會(huì)報(bào)致命錯(cuò)誤, Fatal error: Uncaught ErrorException: str_starts_with(): Passing null to parameter #2 ($needle) of type string is deprecated
  3. redis-queue組件里面MakeConsumerCommand.php的寫法也會(huì)報(bào)錯(cuò), Uncaught
    Symfony\Component\Console\Exception\LogicException: The command defined in "Webman\RedisQueue\Command\MakeConsumerCommand" cannot have an empty name
  4. 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

以上都需要通過升級(jí)webman對(duì)應(yīng)組件到最新版本來兼容

composer update webman/console webman/redis-queue webman/event
1519 1 1
1個(gè)評(píng)論

掌柜

感謝分享,打包時(shí)遇到redis-queue問題,通過方法解決!

  • 暫無評(píng)論

鄧靖

220
積分
0
獲贊數(shù)
0
粉絲數(shù)
2022-06-24 加入
??