Skip to content

Commit e948520

Browse files
Fix RedisArray definition
1 parent 6c034ae commit e948520

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

redis/RedisArray.php

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
/**
44
* Helper autocomplete for php redis extension
55
*
6-
* @mixin \Redis
7-
*
86
* @link https://github.com/phpredis/phpredis/blob/develop/redis_array.stub.php
97
*/
108
class RedisArray
@@ -207,4 +205,44 @@ public function multi(string $host, int $mode = Redis::MULTI): bool|RedisArray {
207205
* </pre>
208206
*/
209207
public function info(): bool|array {}
208+
209+
public function bgsave(): array {}
210+
211+
public function del(string|array $key, string ...$otherkeys): bool|int {}
212+
213+
public function discard(): bool|null {}
214+
215+
public function exec(): bool|null|array {}
216+
217+
public function flushall(): bool|array {}
218+
219+
public function flushdb(): bool|array {}
220+
221+
public function getOption(int $opt): bool|array {}
222+
223+
public function hscan(string $key, null|int|string &$iterator, ?string $pattern = null, int $count = 0): bool|array {}
224+
225+
public function keys(string $pattern): bool|array {}
226+
227+
public function mget(array $keys): bool|array {}
228+
229+
public function mset(array $pairs): bool {}
230+
231+
public function ping(): bool|array {}
232+
233+
public function save(): bool|array {}
234+
235+
public function scan(null|int|string &$iterator, string $node, ?string $pattern = null, int $count = 0): bool|array {}
236+
237+
public function select(int $index): bool|array {}
238+
239+
public function setOption(int $opt, string $value): bool|array {}
240+
241+
public function sscan(string $key, null|int|string &$iterator, ?string $pattern = null, int $count = 0): bool|array {}
242+
243+
public function unlink(string|array $key, string ...$otherkeys): bool|int {}
244+
245+
public function unwatch(): bool|null {}
246+
247+
public function zscan(string $key, null|int|string &$iterator, ?string $pattern = null, int $count = 0): bool|array {}
210248
}

0 commit comments

Comments
 (0)