Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 152fdda

Browse files
Fix double -> int truncation warning
1 parent 8014000 commit 152fdda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/RedisTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6345,7 +6345,7 @@ public function testHashExpiration() {
63456345
$this->assertEquals([1], $res);
63466346

63476347
// LT - should not set if the new expiration is smaller
6348-
$res = $this->redis->{$exp_cmd}('m', $ttl / 2, ['F'], 'LT');
6348+
$res = $this->redis->{$exp_cmd}('m', intval($ttl / 2), ['F'], 'LT');
63496349
$this->assertTrue(is_array($res) && $res[0] > 0);
63506350
}
63516351
}

0 commit comments

Comments
 (0)