From d195584a324d0b1b2c41e50ad1e545067150aed2 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 14 Jan 2016 15:00:41 +0100 Subject: Allow indirect set in CappedMemoryCache --- lib/private/cache/cappedmemorycache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/cache') diff --git a/lib/private/cache/cappedmemorycache.php b/lib/private/cache/cappedmemorycache.php index cfaf78c51df..e3efbf76a23 100644 --- a/lib/private/cache/cappedmemorycache.php +++ b/lib/private/cache/cappedmemorycache.php @@ -64,8 +64,8 @@ class CappedMemoryCache implements ICache, \ArrayAccess { return $this->hasKey($offset); } - public function offsetGet($offset) { - return $this->get($offset); + public function &offsetGet($offset) { + return $this->cache[$offset]; } public function offsetSet($offset, $value) { -- cgit v1.2.3