From 71f5133a8669e20ea2112f8d804c28907cdd0f07 Mon Sep 17 00:00:00 2001 From: Benjamin Stout Date: Thu, 21 Feb 2019 11:44:38 -0800 Subject: [PATCH] Use strict comparison instead of function call - #13001 --- lib/Cake/Cache/Engine/RedisEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Cache/Engine/RedisEngine.php b/lib/Cake/Cache/Engine/RedisEngine.php index fb4f9c463..6dd659944 100644 --- a/lib/Cake/Cache/Engine/RedisEngine.php +++ b/lib/Cake/Cache/Engine/RedisEngine.php @@ -228,7 +228,7 @@ class RedisEngine extends CacheEngine { * Disconnects from the redis server */ public function __destruct() { - if (empty($this->settings['persistent']) && !is_null($this->_Redis)) { + if (empty($this->settings['persistent']) && $this->_Redis !== null) { $this->_Redis->close(); } }