From e4c4ae82452814237a65939827e3b94792fb6af3 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Mon, 8 Jun 2020 14:27:19 +0500 Subject: [PATCH] [MemcachedCache] loadData now returns null instead of false (#1592) FileCache and SQLiteCache returns null on cache miss. This is important if using strict comparing (for example when using "===") --- caches/MemcachedCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caches/MemcachedCache.php b/caches/MemcachedCache.php index f69f10b0..b431279a 100644 --- a/caches/MemcachedCache.php +++ b/caches/MemcachedCache.php @@ -40,7 +40,7 @@ class MemcachedCache implements CacheInterface { if ($this->data) return $this->data; $result = $this->conn->get($this->getCacheKey()); if ($result === false) { - return false; + return null; } $this->time = $result['time'];