renoki-co/laravel-eloquent-query-cache

Trying to access array offset on value of type null - Cache::partialMock()

mrbenosborne opened this issue · 4 comments

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

Version?

v2.7.0

I think you haven't use partialMock correctly: laravel/framework#35870

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?