-
Notifications
You must be signed in to change notification settings - Fork 12
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
Target both evenement 3 and 2 #8
Conversation
1 similar comment
1 similar comment
Thanks! I had to adapt the internal event handling to make sure that the argument which is passed by pcntl to the callback registered with pcntl_signal is not further passed to EventEmitterTrait::emit, as the latter breaks in case an associative array is used as argument :) |
Yes, exactly. call_user_func_array was used in evenement 2 which silently dropped the named keys of the associative array while the splat operator used in evenement 3 refuses to work at all. I didn't realize arguments were passed at all and assume nobody relies on them being present, but I'll tag a new major version for this potentially breaking change. |
Neither did I hence my surprise seeing your commits. Tagging a new major version sounds like the reasonable thing to do 👍 |
Événement
.
3.0
is nearly fully backwards compatible with2.0
. It packs some neat performance upgrades without any code changes on nearly all projects using it. Took a quick look at your code base and couldn't find any breaks