Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5730497

Browse files
PHP might throw a fatal error if we send no args to exists (#2510)
1 parent b1771de commit 5730497

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/RedisTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,8 @@ public function testExists() {
939939

940940
/* Test passing an array as well as the keys variadic */
941941
$this->assertEquals(count($mkeys), $this->redis->exists($mkeys));
942-
$this->assertEquals(count($mkeys), $this->redis->exists(...$mkeys));
942+
if (count($mkeys))
943+
$this->assertEquals(count($mkeys), $this->redis->exists(...$mkeys));
943944
}
944945

945946
public function testTouch() {

0 commit comments

Comments
 (0)