From ff32a634151fd471cbd5b39e26cd56af63fe7ea5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 8 Jun 2018 16:16:53 +0200 Subject: [PATCH] Fix: Warning: time() expects exactly 0 parameters, 1 given ... (php 7.3) --- tests/RedisTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RedisTest.php b/tests/RedisTest.php index ff0b7537..e48309d5 100644 --- a/tests/RedisTest.php +++ b/tests/RedisTest.php @@ -452,7 +452,7 @@ public function testSetTimeout() { public function testExpireAt() { $this->redis->del('key'); $this->redis->set('key', 'value'); - $now = time(NULL); + $now = time(); $this->redis->expireAt('key', $now + 1); $this->assertEquals('value', $this->redis->get('key')); sleep(2);