Skip to content

Commit

Permalink
null to isset
Browse files Browse the repository at this point in the history
  • Loading branch information
shabeer-ali-m authored Jun 27, 2020
1 parent 92f115b commit 1f25df8
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 (is_null(self::$instance[$key])) {
if (isset(self::$instance[$key])) {
self::$instance[$key] = new self($key);
}
return self::$instance[$key];
Expand Down

0 comments on commit 1f25df8

Please sign in to comment.