Fix a missing second parameter in a PlMemcacheCache exception
authorNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Mon, 14 Oct 2013 19:23:12 +0000 (21:23 +0200)
committerNicolas Iooss <nicolas.iooss_git@polytechnique.org>
Fri, 1 Nov 2013 15:20:17 +0000 (16:20 +0100)
Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
classes/plcache.php

index 9558b01..6d2b471 100644 (file)
@@ -479,7 +479,7 @@ class PlMemcacheCache implements PlCacheBackend
         $value = $this->context->get($key);
         if ($value === false) {
             if (is_null($callback)) {
-                throw new PlNotFoundInCacheException($key);
+                throw new PlNotFoundInCacheException($key, $type);
             }
             $value = call_user_func_array($callback, $cbargs);
             $this->set($key, $type, $value, $expire);