From 079b944077ec523303b0ea89188565c9a611bea2 Mon Sep 17 00:00:00 2001 From: MatTheCat Date: Mon, 18 Jun 2018 15:48:40 +0200 Subject: [PATCH] Ensure updateTimestamp returns a boolean --- .../Session/Storage/Handler/RedisSessionHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.php b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.php index 974d930e90868..59242ef387f81 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.php @@ -100,6 +100,6 @@ public function gc($maxlifetime): bool */ public function updateTimestamp($sessionId, $data) { - return $this->redis->expire($this->prefix.$sessionId, (int) ini_get('session.gc_maxlifetime')); + return (bool) $this->redis->expire($this->prefix.$sessionId, (int) ini_get('session.gc_maxlifetime')); } }