diff --git a/src/M6Web/Component/RedisMock/RedisMock.php b/src/M6Web/Component/RedisMock/RedisMock.php index 2019754..c9790a3 100644 --- a/src/M6Web/Component/RedisMock/RedisMock.php +++ b/src/M6Web/Component/RedisMock/RedisMock.php @@ -106,7 +106,7 @@ public function set($key, $value, $seconds = null) self::$dataTypes[$this->storage][$key] = 'string'; if (!is_null($seconds)) { - self::$dataTtl[$this->storage][$key] = time() + $seconds; + self::$dataTtl[$this->storage][$key] = time() + (int) $seconds; } return $this->returnPipedInfo('OK');