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
__debugInfo fails after unserialize() #44
Comments
I also ran across this issue yesterday. |
Small reproducible test case: $closure = new SuperClosure\SerializableClosure(function() {});
var_dump($closure); // Works
$closure = unserialize(serialize($closure));
var_dump($closure); // Crashes |
@Anahkiasen Surely |
Thanks for the bug report and repro code. |
@GrahamCampbell Not that I know of no, the SerializableClosure wraps the closure and is still callable, it's more like a decorator |
SerializableClosure::serialize()
does not account forSerializerInterface $serializer = null
, in the constructor. If this parameter isn't provided then the default serializer, which the constructor creates, is not created duringSerializableClosure::unserialize()
.The text was updated successfully, but these errors were encountered: