-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[EventDispatcher] Fix removing listeners when using first-class callable syntax #46262
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
as this is considered a bugfix, should we merge it into lower branches ? Projects might use the first-class callable syntax with Symfony 5.4 too |
Indeed. Now targeting 4.4 |
@nicolas-grekas I think you also need to fix the |
Updated. |
cb5dafb
to
f2dd6c8
Compare
This behavior is new to PHP 8.1: https://3v4l.org/Zr0m7 |
Thank you @javer. |
Closures should be compared using non-strict comparison to account for the first-class callable syntax.
See https://github.com/php/php-src/blob/9a90bd705483004c2ef408ee9e9bb0902beade3f/Zend/zend_closures.c#L387-L423