Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Argument 2 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an instance of Symfony\Component\EventDispatcher\Event or null #134

Open
cor-emble opened this issue May 19, 2021 · 0 comments

Comments

@cor-emble
Copy link

Hi!

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.

When i run the comand ./vendor/bin/grumphp run i got this error:

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

Anyone seen this before?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant