drsuh 10 无法运行问题

hrs 提交于 2020/10/19 - 21:56 , 周一
社区
安装后无法全局使用,出现下列错误!
PHP Fatal error:  Uncaught TypeError: Argument 2 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an instance of Symfony\Component\EventDispatcher\Event or null, string given, called in /root/.config/composer/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/CommandEventHookDispatcher.php on line 36 and defined in /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:37
Stack trace:
#0 /root/.config/composer/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/CommandEventHookDispatcher.php(36): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#1 /root/.config/composer/vendor/consolidation/annotated-command/src/Hooks/HookManager.php(424): Consolidation\AnnotatedCommand\Hooks\Dispatchers\CommandEventHookDispatcher->callCommandEventHooks()
#2 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(214): Consolidation\AnnotatedCommand\Hooks\HookManager->callCommandEventHooks()
#3 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(4 in /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php on line 37
 [warning] Drush command terminated abnormally.