Drush symfony PHP errors

If you get this PHP error:

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 .composer/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/CommandEventHookDispatcher.php on line 36 and defined in vendor/symfony/event-dispatcher/EventDispatcher.php:37

You should check this comment: https://www.drupal.org/project/drupal/issues/3170166#comment-13884072

I added the necessary packages to my global composer and can run drush version 10 again. :-)

Last modified