php webman ect_cycles 运行出错了 —— vendor中的问题 #336
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
➜ ectms-web php webman ect_cycles 20 full
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 /var/webman-dev/ectms-web/vendor/webman/event/src/EventListCommand.php on line 29
➜ ectms-web php webman ect_cycles 20
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 /var/webman-dev/ectms-web/vendor/webman/event/src/EventListCommand.php on line 29
问题原因:
错误是由于 webman/event 插件中的 EventListCommand 类与 Symfony Console 组件之间的方法签名不兼容导致的。
注释掉就解决了