Problem/Motivation
A typeError appears during the config import after update to 2.0.0-rc4, in a drupal 9.5.5
The type provided by the config import is Drupal\Core\Config\ConfigImporterEvent
Complete error:
[error] TypeError: Drupal\language_hierarchy\EventSubscriber\LanguageHierarchyConfigEventSubscriber::onConfigImport(): Argument #1 ($event) must be of type Symfony\Contracts\EventDispatcher\Event, Drupal\Core\Config\ConfigImporterEvent given in Drupal\language_hierarchy\EventSubscriber\LanguageHierarchyConfigEventSubscriber->onConfigImport() (line 22 of /app/docroot/modules/contrib/language_hierarchy/src/EventSubscriber/LanguageHierarchyConfigEventSubscriber.php) #0 [internal function]: Drupal\language_hierarchy\EventSubscriber\LanguageHierarchyConfigEventSubscriber->onConfigImport(Object(Drupal\Core\Config\ConfigImporterEvent), 'config.importer...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#1 /app/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Drupal\Core\Config\ConfigImporterEvent), 'config.importer...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#2 /app/docroot/core/lib/Drupal/Core/Config/ConfigImporter.php(697): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Drupal\Core\Config\ConfigImporterEvent), 'config.importer...')
#3 /app/docroot/core/lib/Drupal/Core/Config/ConfigImporter.php(541): Drupal\Core\Config\ConfigImporter->finish(Array)
#4 /app/vendor/drush/drush/src/Drupal/Commands/config/ConfigImportCommands.php(300): Drupal\Core\Config\ConfigImporter->doSyncStep('finish', Array)
#5 /app/vendor/drush/drush/includes/drush.inc(122): Drush\Drupal\Commands\config\ConfigImportCommands->doImport(Object(Drupal\Core\Config\StorageComparer))
#6 /app/vendor/drush/drush/includes/drush.inc(113): drush_call_user_func_array(Array, Array)
#7 /app/vendor/drush/drush/src/Drupal/Commands/config/ConfigImportCommands.php(271): drush_op(Array, Object(Drupal\Core\Config\StorageComparer))
#8 [internal function]: Drush\Drupal\Commands\config\ConfigImportCommands->import(Array)
#9 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#10 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#11 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(390): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#13 /app/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /app/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /app/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /app/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /app/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /app/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /app/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#20 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
#21 /app/vendor/bin/drush(120): include('/app/vendor/dru...')
#22 {main}.