diff --git a/laravel/redis.php b/laravel/redis.php index a4bd8459..d23589a4 100644 --- a/laravel/redis.php +++ b/laravel/redis.php @@ -258,7 +258,10 @@ public static function __callStatic($method, $parameters) */ public function __destruct() { - fclose($this->connection); + if ($this->connection) + { + fclose($this->connection); + } } -} \ No newline at end of file +}