mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-24 00:52:16 +01:00
Fix double -> int truncation warning
This commit is contained in:
committed by
Michael Grunder
parent
8014000369
commit
152fdda9b1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user