Skip to content

Commit

Permalink
Fix Unsupported operand types: int + string (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmarney committed Aug 16, 2021
1 parent 7438b0d commit 86a7b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/M6Web/Component/RedisMock/RedisMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 86a7b33

Please sign in to comment.