blob: f3d5f37d472e5e6a80fcaa9643498b8ef0c8fc36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
|