From dc5b783b33c2735b2fd2c0408843007142c64f22 Mon Sep 17 00:00:00 2001 From: Josef Moravec <moravec@mzk.cz> Date: Tue, 15 Oct 2019 15:17:30 +0200 Subject: [PATCH] Fix Redis session handler (#1464) --- module/VuFind/src/VuFind/Session/Redis.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Session/Redis.php b/module/VuFind/src/VuFind/Session/Redis.php index 3a1f36f37ef..9e4dac5ca28 100644 --- a/module/VuFind/src/VuFind/Session/Redis.php +++ b/module/VuFind/src/VuFind/Session/Redis.php @@ -72,8 +72,8 @@ class Redis extends AbstractBase $timeout = $this->config->redis_connection_timeout ?? 0.5; $auth = $this->config->redis_auth ?? false; $redis_db = $this->config->redis_db ?? 0; - $this->redisVersion = int($this->config->redis_version ?? 3); - $standalone = bool($this->config->redis_standalone ?? true); + $this->redisVersion = (int)($this->config->redis_version ?? 3); + $standalone = (bool)($this->config->redis_standalone ?? true); // Create Credis client, the connection is established lazily $this->connection = new \Credis_Client( -- GitLab