Skip to content

Commit cfc2ed5

Browse files
author
niulingyun
committed
add isset
1 parent e79dd47 commit cfc2ed5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Pools/CoroutineRedisProxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function __call(string $name, array $arguments)
200200
switch (strtolower($name)) {
201201
case 'set':
202202
$arguments[2] = $this->serializeHandler($arguments[2], true);
203-
if (is_int($arguments[3])) {
203+
if (isset($arguments[3]) && is_int($arguments[3])) {
204204
//当设置了过期时间时,需要追加EX前缀 SET key value [EX seconds]
205205
array_splice($arguments, 3, 0, 'EX');
206206
}

0 commit comments

Comments
 (0)