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.