-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Description
Symfony version(s) affected
4.4
Description
When using the a Cache Pool (happens with CacheItemPoolInterface and CacheInterface) and trying to cache something with the that contains a closure, the marshaller tries to serialize it and runs into an exception. The exception is never handled or logged.
How to reproduce
Store something that contains a closure into the cache. In my case it was a getInfo() on a ResponseInterface.
Possible Solution
Handle the exception or pass it down to the adapter so it can be seen.
Additional Context
No response