summaryrefslogtreecommitdiffstats
path: root/1366.patch
diff options
context:
space:
mode:
Diffstat (limited to '1366.patch')
-rw-r--r--1366.patch23
1 files changed, 23 insertions, 0 deletions
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 <remi@remirepo.net>
+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);