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

Fix closure listener with parameters as reference #69

Merged
merged 6 commits into from
Feb 23, 2022
Merged

Fix closure listener with parameters as reference #69

merged 6 commits into from
Feb 23, 2022

Conversation

mjauvin
Copy link
Member

@mjauvin mjauvin commented Feb 20, 2022

The previous behavior creates a "regular" Closure for the listener we already wrap in a SerializedClosure (in Laravel's Events::Dispatcher::makeListener() method).

This PR delays creating the SerializedClosure on the initial listener and waits for the Closure returned by Laravel's makeListener() method before wrapping it into a SerializedClosure.

@mjauvin mjauvin changed the base branch from develop to wip/1.2 February 20, 2022 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants