Skip to content

Commit caf5c99

Browse files
Use old style array syntax
1 parent cccc399 commit caf5c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/RedisTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ public function testExists()
593593
$this->assertEquals(1, $this->redis->exists('key'));
594594

595595
/* Add multiple keys */
596-
$mkeys = [];
596+
$mkeys = Array();
597597
for ($i = 0; $i < 10; $i++) {
598598
if (rand(1, 2) == 1) {
599599
$mkey = "{exists}key:$i";
@@ -604,7 +604,7 @@ public function testExists()
604604

605605
/* Test passing an array as well as the keys variadic */
606606
$this->assertEquals(count($mkeys), $this->redis->exists($mkeys));
607-
$this->assertEquals(count($mkeys), call_user_func_array([$this->redis, 'exists'], $mkeys));
607+
$this->assertEquals(count($mkeys), call_user_func_array(Array($this->redis, 'exists'), $mkeys));
608608
}
609609

610610
public function testGetKeys()

0 commit comments

Comments
 (0)