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 weakClosure() not preserving original scope #393

Merged
merged 1 commit into from
Jun 25, 2022
Merged

Fix weakClosure() not preserving original scope #393

merged 1 commit into from
Jun 25, 2022

Conversation

Nevay
Copy link
Contributor

@Nevay Nevay commented Jun 24, 2022

Changes weakClosure() to preserve original closure scope by using ::bindTo() instead of ::call() if scope differs from $this class.

@trowski trowski merged commit 9579bc7 into amphp:v3 Jun 25, 2022
@trowski
Copy link
Member

trowski commented Jun 25, 2022

Thanks for finding and fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants