|
13 | 13 |
|
14 | 14 | trait ScanCaller |
15 | 15 | { |
16 | | - public function scan(&$cursor, $pattern = null, $count = 0) |
| 16 | + public function scan(&$cursor, ...$arguments) |
17 | 17 | { |
18 | | - return $this->__call('scan', [&$cursor, $pattern, $count]); |
| 18 | + return $this->__call('scan', array_merge([&$cursor], $arguments)); |
19 | 19 | } |
20 | 20 |
|
21 | | - public function hScan($key, &$cursor, $pattern = null, $count = 0) |
| 21 | + public function hScan($key, &$cursor, ...$arguments) |
22 | 22 | { |
23 | | - return $this->__call('hScan', [$key, &$cursor, $pattern, $count]); |
| 23 | + return $this->__call('hScan', array_merge([$key, &$cursor], $arguments)); |
24 | 24 | } |
25 | 25 |
|
26 | | - public function zScan($key, &$cursor, $pattern = null, $count = 0) |
| 26 | + public function zScan($key, &$cursor, ...$arguments) |
27 | 27 | { |
28 | | - return $this->__call('zScan', [$key, &$cursor, $pattern, $count]); |
| 28 | + return $this->__call('zScan', array_merge([$key, &$cursor], $arguments)); |
29 | 29 | } |
30 | 30 |
|
31 | | - public function sScan($key, &$cursor, $pattern = null, $count = 0) |
| 31 | + public function sScan($key, &$cursor, ...$arguments) |
32 | 32 | { |
33 | | - return $this->__call('sScan', [$key, &$cursor, $pattern, $count]); |
| 33 | + return $this->__call('sScan', array_merge([$key, &$cursor], $arguments)); |
34 | 34 | } |
35 | 35 | } |
0 commit comments