-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
EventListener Broken with 5.0.x #35259
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
Comments
@derrabus can you please have a look here? Thanks 😊 |
@OskarStark Thanks for the ping. I'll have a look. |
Can you confirm that #35278 fixes this? |
i can confirm, #35278 correctly sets prio to any eta, when this can be packed/released into 5.0.3? many thx 🍺 🎉 |
nicolas-grekas
added a commit
that referenced
this issue
Jan 9, 2020
This PR was merged into the 4.3 branch. Discussion ---------- [EventDispatcher] expand listener in place | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #35259 | License | MIT | Doc PR | Commits ------- f5d4073 expand listener in place
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 5.0.x
Description
we are in the process of migrating from 4.4 to 5.0
however some of the registered event listeners, don't return a priorty - aka
null
this happens around here:
https://sourcegraph.com/github.com/symfony/symfony@20bf17f6ad38011f90cfe9b2dc7c30c8901163e5/-/blob/src/Symfony/Component/EventDispatcher/EventDispatcher.php#L117
as the
$this->listeners[$eventName]
is nested one more times.it results in a final exception:

due to https://sourcegraph.com/github.com/symfony/symfony@20bf17f6ad38011f90cfe9b2dc7c30c8901163e5/-/blob/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php#L55 - beeing type hinted with
int
introduced with: 2bc9472
my event definition:
How to reproduce
clone: https://github.com/hjanuschka/demo
where it should show
0
Possible Solution
return 0;
instead ofreturn null
ingetListenerPriority
PR: #35260
any help?
The text was updated successfully, but these errors were encountered: