After updating the Drupal module Search API Solr to the latest version (4.1.11) which also updates some symfony packages i have an issue with GrumPHP.
Fatal error: Uncaught TypeError: Argument 2 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an instance of Symfony\Component\EventDispatcher\Event or null, instance of GrumPHP\Event\RunnerEvent given, called in /var/www/html/vendor/phpro/grumphp/src/Event/Dispatcher/Bridge/SymfonyEventDispatcher.php on line 32 and defined in /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php:37
Stack trace:
#0 /var/www/html/vendor/phpro/grumphp/src/Event/Dispatcher/Bridge/SymfonyEventDispatcher.php(32): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('grumphp.runner....', Object(GrumPHP\Event\RunnerEvent))
#1 /var/www/html/vendor/phpro/grumphp/src/Runner/TaskRunner.php(76): GrumPHP\Event\Dispatcher\Bridge\SymfonyEventDispatcher->dispatch(Object(GrumPHP\Event\RunnerEvent), 'grumphp.runner....')
#2 /var/www/html/vendor/phpro/grumphp/src/Console/Helper/TaskRunnerHelper.php(69): GrumPHP\Runner\TaskRunner->run(Object(GrumPHP\Runner\TaskRunnerContext))
#3 /var/www/html/vendor/phpro/grumphp/src/Console/Command/RunCommand.php(80): GrumPHP\Console\Helper\TaskRunnerHelper->run(Object(Symfony\Component\Console\Output\ConsoleOutput), Object(GrumPHP\Runner\TaskRunnerContext))
#4 /var/www/html/vendor/symfony/console/Command/Command.php(255): GrumPHP\Console\Command\RunCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/html/vendor/symfony/console/Application.php(1005): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(GrumPHP\Console\Command\RunCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/html/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/html/vendor/phpro/grumphp/bin/grumphp(50): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/vendor/phpro/grumphp/bin/grumphp(51): {closure}()
#10 {main}
thrown in /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php on line 37