mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Use strict comparison instead of function call - #13001
This commit is contained in:
parent
0cc3509b74
commit
71f5133a86
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue