Skip to content

Commit

Permalink
Warning Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shabeer-ali-m authored Sep 8, 2020
1 parent 1f25df8 commit 020c5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SuperCache/SuperCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 020c5a6

Please sign in to comment.