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

Problems on Symfony 5.0 #44

Open
svaningelgem opened this issue Apr 5, 2020 · 2 comments
Open

Problems on Symfony 5.0 #44

svaningelgem opened this issue Apr 5, 2020 · 2 comments

Comments

@svaningelgem
Copy link

I just did a composer update and got the following messages:

  - Updating symfony/event-dispatcher (v4.2.1 => v5.0.7): Downloading (100%)

Nothing special, just a major version update, but it seems something changed under the hood:

TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in <my project>/vendor/kriswallsmith/spork/src/Spork/ProcessManager.php on line 94 and defined in <my project>/vendor/symfony/event-dispatcher/EventDispatcher.php:48
Stack trace:
#0 <my project>/vendor/kriswallsmith/spork/src/Spork/ProcessManager.php(94): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('spork.pre_fork')
#1 <my project>/class.php(268): Spork\ProcessManager->fork(Array)
#2 <my project>/download.php(7): class_Downloader->start()
#3 {main}[2020-04-05 08:34:17] !! Exception encountered:

TypeError: Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in <my project>/vendor/kriswallsmith/spork/src/Spork/ProcessManager.php on line 94 and defined in <my project>/vendor/symfony/event-dispatcher/EventDispatcher.php:48
Stack trace:
#0 <my project>/vendor/kriswallsmith/spork/src/Spork/ProcessManager.php(94): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('spork.pre_fork')
#1 <my project>/class.php(268): Spork\ProcessManager->fork(Array)
#2 <my project>/download.php(7): class_Downloader->start()
#3 {main}
@svaningelgem
Copy link
Author

BTW, how I solved it is via:

composer require symfony/event-dispatcher ^4

That will limit event-dispatcher to the major version 4.

@TheLevti
Copy link

Check https://github.com/TheLevti/phpfork. Its a fork of this repo where I try to keep it up to date. Its still work in progress and hopefully I can provide a pull request back into this one.

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

2 participants