You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialization of an Exception inside the serializable closure results with the Serialization of 'Closure' is not allowed exception. This is most likely caused by an attempt to serialize the stack trace, which contains the serializable closure itself, but this time without the ability to do its magic.
And, frankly, I'm not sure if there's anything that can be done about it, other than adding another warning to the documentation. You can't do much with an already existing Exception object and its stack trace.
Serializable Closure Version
1.3.1
PHP Version
8.2.8
Description
Serialization of an
Exception
inside the serializable closure results with theSerialization of 'Closure' is not allowed
exception. This is most likely caused by an attempt to serialize the stack trace, which contains the serializable closure itself, but this time without the ability to do its magic.And, frankly, I'm not sure if there's anything that can be done about it, other than adding another warning to the documentation. You can't do much with an already existing
Exception
object and its stack trace.Steps To Reproduce
This issue is very easy to reproduce:
This works as expected:
The text was updated successfully, but these errors were encountered: