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
[Symfony\Component\ErrorHandler\Error\UndefinedMethodError]
Attempted to call an undefined method named "setCallbackWrapper" of class "Symfony\Component\Cache\Adapter\TraceableAdapter".
The method setCallbackWrapper it's trying to call is defined in the \Symfony\Component\Cache\Traits\ContractsTrait and it might be therefore it's assumed that it's also present on the TraceableAdapter.
How to reproduce
I think by just adding the above configuration it will trigger the exception. I have not tried this on a fresh Symfony install.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
I figured out it was Sentrys decoration of the TraceableAdapter that caused the eror (which I have posted an issue about here: getsentry/sentry-symfony#840), however, I feel it's still a small bug in Symfony because the setCallbackWrapper is only defined in the ContractsTrait.
Symfony version(s) affected
6.4.*
Description
I added this configuration:
from this page: https://symfony.com/doc/current/cache.html#computing-cache-values-asynchronously
and got this exception:
The method
setCallbackWrapper
it's trying to call is defined in the\Symfony\Component\Cache\Traits\ContractsTrait
and it might be therefore it's assumed that it's also present on theTraceableAdapter
.How to reproduce
I think by just adding the above configuration it will trigger the exception. I have not tried this on a fresh Symfony install.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: