Skip to content

Commit 86a7b33

Browse files
authored
Fix Unsupported operand types: int + string (#95)
1 parent 7438b0d commit 86a7b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/M6Web/Component/RedisMock/RedisMock.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function set($key, $value, $seconds = null)
106106
self::$dataTypes[$this->storage][$key] = 'string';
107107

108108
if (!is_null($seconds)) {
109-
self::$dataTtl[$this->storage][$key] = time() + $seconds;
109+
self::$dataTtl[$this->storage][$key] = time() + (int) $seconds;
110110
}
111111

112112
return $this->returnPipedInfo('OK');

0 commit comments

Comments
 (0)