Trying to access array offset on value of type null - Cache::partialMock()
mrbenosborne opened this issue · 4 comments
mrbenosborne commented
I have query caching enabled on a model but when I use:
Cache::partialMock();
in a test I get the below error:
ErrorException : Trying to access array offset on value of type null
/vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:337
rennokki commented
Version?
mrbenosborne commented
v2.7.0
rennokki commented
I think you haven't use partialMock
correctly: laravel/framework#35870
mrbenosborne commented
I think you haven't use
partialMock
correctly: laravel/framework#35870
I think I am, there isn't much too it, ie. Call the partialMock() method?
Seems like people are still having issues on the thread you tagged?