From e948520148700147f8b2a7bba3501308fb416904 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 2 Aug 2025 12:45:04 +0200 Subject: [PATCH] Fix RedisArray definition --- redis/RedisArray.php | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/redis/RedisArray.php b/redis/RedisArray.php index f5fc74b8d..0f94a6a26 100644 --- a/redis/RedisArray.php +++ b/redis/RedisArray.php @@ -3,8 +3,6 @@ /** * Helper autocomplete for php redis extension * - * @mixin \Redis - * * @link https://github.com/phpredis/phpredis/blob/develop/redis_array.stub.php */ class RedisArray @@ -207,4 +205,44 @@ public function multi(string $host, int $mode = Redis::MULTI): bool|RedisArray { * */ public function info(): bool|array {} + + public function bgsave(): array {} + + public function del(string|array $key, string ...$otherkeys): bool|int {} + + public function discard(): bool|null {} + + public function exec(): bool|null|array {} + + public function flushall(): bool|array {} + + public function flushdb(): bool|array {} + + public function getOption(int $opt): bool|array {} + + public function hscan(string $key, null|int|string &$iterator, ?string $pattern = null, int $count = 0): bool|array {} + + public function keys(string $pattern): bool|array {} + + public function mget(array $keys): bool|array {} + + public function mset(array $pairs): bool {} + + public function ping(): bool|array {} + + public function save(): bool|array {} + + public function scan(null|int|string &$iterator, string $node, ?string $pattern = null, int $count = 0): bool|array {} + + public function select(int $index): bool|array {} + + public function setOption(int $opt, string $value): bool|array {} + + public function sscan(string $key, null|int|string &$iterator, ?string $pattern = null, int $count = 0): bool|array {} + + public function unlink(string|array $key, string ...$otherkeys): bool|int {} + + public function unwatch(): bool|null {} + + public function zscan(string $key, null|int|string &$iterator, ?string $pattern = null, int $count = 0): bool|array {} }