From 47abb35edde318ead04e102e88bafb90d07d85e4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 8 Jun 2018 16:20:22 +0200 Subject: better path (PR 1335) test build with 7.3 open https://github.com/phpredis/phpredis/pull/1366 Fix: Warning: time() expects exactly 0 parameters, 1 given ... --- 1366.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 1366.patch (limited to '1366.patch') diff --git a/1366.patch b/1366.patch new file mode 100644 index 0000000..f3d5f37 --- /dev/null +++ b/1366.patch @@ -0,0 +1,23 @@ +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); -- cgit