Skip to content

Commit 079b944

Browse files
committed
Ensure updateTimestamp returns a boolean
1 parent 15c0d48 commit 079b944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ public function gc($maxlifetime): bool
100100
*/
101101
public function updateTimestamp($sessionId, $data)
102102
{
103-
return $this->redis->expire($this->prefix.$sessionId, (int) ini_get('session.gc_maxlifetime'));
103+
return (bool) $this->redis->expire($this->prefix.$sessionId, (int) ini_get('session.gc_maxlifetime'));
104104
}
105105
}

0 commit comments

Comments
 (0)