Fix double -> int truncation warning

This commit is contained in:
michael-grunder
2025-05-07 15:02:02 -07:00
committed by Michael Grunder
parent 8014000369
commit 152fdda9b1

View File

@@ -6345,7 +6345,7 @@ class Redis_Test extends TestSuite {
$this->assertEquals([1], $res);
// LT - should not set if the new expiration is smaller
$res = $this->redis->{$exp_cmd}('m', $ttl / 2, ['F'], 'LT');
$res = $this->redis->{$exp_cmd}('m', intval($ttl / 2), ['F'], 'LT');
$this->assertTrue(is_array($res) && $res[0] > 0);
}
}