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
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
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
感謝分享,打包時(shí)遇到redis-queue問題,通過方法解決!