Use strict comparison instead of function call - #13001

This commit is contained in:
Benjamin Stout 2019-02-21 11:44:38 -08:00
parent 0cc3509b74
commit 71f5133a86

View file

@ -228,7 +228,7 @@ class RedisEngine extends CacheEngine {
* Disconnects from the redis server * Disconnects from the redis server
*/ */
public function __destruct() { public function __destruct() {
if (empty($this->settings['persistent']) && !is_null($this->_Redis)) { if (empty($this->settings['persistent']) && $this->_Redis !== null) {
$this->_Redis->close(); $this->_Redis->close();
} }
} }