-
Notifications
You must be signed in to change notification settings - Fork 88
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
Unbinding $this of closure is deprecated on php 7.4 #84
Comments
I have same issue. |
Same issue. Had to rewrite the code without using |
I've narrowed the root cause to the fact that closure/src/SerializableClosure.php Lines 89 to 102 in 628cc76
closure/src/ReflectionClosure.php Lines 31 to 41 in 628cc76
closure/src/ReflectionClosure.php Lines 68 to 80 in 628cc76
|
Yeah, i saw it too. It will be serialized, but |
Thanks a lot @msarca! 🎉 |
The issue is related to that closure was unserialized first, then Closure was serialized again and it doesn't have this attribute. Is there a way to bind $this to newly serialized closure?
basically here is 2 Closures, which I try to serialize. I figured out that issue is related to "isBindingRequired" is false for a second.
The text was updated successfully, but these errors were encountered: