From 152fdda9b15fe5e60914f43fa34f64fd6e19d90d Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Wed, 7 May 2025 15:02:02 -0700 Subject: [PATCH] Fix double -> int truncation warning --- tests/RedisTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RedisTest.php b/tests/RedisTest.php index 7ca9e68..783d23a 100644 --- a/tests/RedisTest.php +++ b/tests/RedisTest.php @@ -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); } }