From c85cc13d1ab926e6b75728ff45b84f4a53a724af Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Tue, 22 Oct 2013 11:16:08 +0200 Subject: [PATCH] Allow null as cache parameter (if no cache was found) and for cache removal. --- lib/autoloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/autoloader.php b/lib/autoloader.php index 3228ca29b22..3451f799e18 100644 --- a/lib/autoloader.php +++ b/lib/autoloader.php @@ -150,7 +150,7 @@ class Autoloader { * @brief Sets the optional low-latency cache for class to path mapping. * @param \OC\Memcache\Cache $memoryCache Instance of memory cache. */ - public function setMemoryCache(\OC\Memcache\Cache $memoryCache) { + public function setMemoryCache(\OC\Memcache\Cache $memoryCache = null) { $this->memoryCache = $memoryCache; } } -- 2.39.5