From 020c5a631aa8d3ca37fd1d40e83b3d84f016e025 Mon Sep 17 00:00:00 2001 From: Shabeer Ali M Date: Tue, 8 Sep 2020 22:35:56 +0530 Subject: [PATCH] Warning Fix --- src/SuperCache/SuperCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SuperCache/SuperCache.php b/src/SuperCache/SuperCache.php index 5c240d2..e652537 100644 --- a/src/SuperCache/SuperCache.php +++ b/src/SuperCache/SuperCache.php @@ -97,7 +97,7 @@ private function attrSave() */ public static function cache($key) { - if (isset(self::$instance[$key])) { + if (!isset(self::$instance[$key])) { self::$instance[$key] = new self($key); } return self::$instance[$key];