diff --git a/src/ClientContextInterface.php b/src/ClientContextInterface.php index 3609baa6..59cdae89 100644 --- a/src/ClientContextInterface.php +++ b/src/ClientContextInterface.php @@ -57,7 +57,7 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this expiretime(string $key) * @method $this keys($pattern) * @method $this move($key, $db) - * @method $this object($subcommand, $key) + * @method $this object(string $subcommand, string $key) * @method $this persist($key) * @method $this pexpire($key, $milliseconds) * @method $this pexpireat($key, $timestamp) @@ -65,37 +65,37 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this randomkey() * @method $this rename($key, $target) * @method $this renamenx($key, $target) - * @method $this scan($cursor, ?array $options = null) + * @method $this scan(int|string $cursor, ?array $options = null) * @method $this sort($key, ?array $options = null) * @method $this sort_ro(string $key, ?string $byPattern = null, ?LimitOffsetCount $limit = null, array $getPatterns = [], ?string $sorting = null, bool $alpha = false) * @method $this ttl($key) * @method $this type($key) * @method $this append($key, $value) - * @method $this bfadd(string $key, $item) - * @method $this bfexists(string $key, $item) + * @method $this bfadd(string $key, string $item) + * @method $this bfexists(string $key, string $item) * @method $this bfinfo(string $key, string $modifier = '') * @method $this bfinsert(string $key, int $capacity = -1, float $error = -1, int $expansion = -1, bool $noCreate = false, bool $nonScaling = false, string ...$item) * @method $this bfloadchunk(string $key, int $iterator, $data) - * @method $this bfmadd(string $key, ...$item) - * @method $this bfmexists(string $key, ...$item) + * @method $this bfmadd(string $key, string ...$item) + * @method $this bfmexists(string $key, string ...$item) * @method $this bfreserve(string $key, float $errorRate, int $capacity, int $expansion = -1, bool $nonScaling = false) * @method $this bfscandump(string $key, int $iterator) * @method $this bitcount(string $key, $start = null, $end = null, string $index = 'byte') - * @method $this bitop($operation, $destkey, $key) - * @method $this bitfield($key, $subcommand, ...$subcommandArg) + * @method $this bitop(string $operation, string $destkey, string $key) + * @method $this bitfield($key, string $subcommand, ...$subcommandArg) * @method $this bitfield_ro(string $key, ?array $encodingOffsetMap = null) - * @method $this bitpos($key, $bit, $start = null, $end = null, string $index = 'byte') + * @method $this bitpos(string $key, int $bit, ?int $start = null, ?int $end = null, string $index = 'byte') * @method $this blmpop(int $timeout, array $keys, string $modifier = 'left', int $count = 1) * @method $this bzpopmax(array $keys, int $timeout) * @method $this bzpopmin(array $keys, int $timeout) * @method $this bzmpop(int $timeout, array $keys, string $modifier = 'min', int $count = 1) - * @method $this cfadd(string $key, $item) - * @method $this cfaddnx(string $key, $item) - * @method $this cfcount(string $key, $item) - * @method $this cfdel(string $key, $item) - * @method $this cfexists(string $key, $item) + * @method $this cfadd(string $key, string $item) + * @method $this cfaddnx(string $key, string $item) + * @method $this cfcount(string $key, string $item) + * @method $this cfdel(string $key, string $item) + * @method $this cfexists(string $key, string $item) * @method $this cfloadchunk(string $key, int $iterator, $data) - * @method $this cfmexists(string $key, ...$item) + * @method $this cfmexists(string $key, string ...$item) * @method $this cfinfo(string $key) * @method $this cfinsert(string $key, int $capacity = -1, bool $noCreate = false, string ...$item) * @method $this cfinsertnx(string $key, int $capacity = -1, bool $noCreate = false, string ...$item) @@ -119,8 +119,8 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this ftaliasupdate(string $alias, string $index) * @method $this ftalter(string $index, FieldInterface[] $schema, ?AlterArguments $arguments = null) * @method $this ftcreate(string $index, FieldInterface[] $schema, ?CreateArguments $arguments = null) - * @method $this ftdictadd(string $dict, ...$term) - * @method $this ftdictdel(string $dict, ...$term) + * @method $this ftdictadd(string $dict, string ...$term) + * @method $this ftdictdel(string $dict, string ...$term) * @method $this ftdictdump(string $dict) * @method $this ftdropindex(string $index, ?DropArguments $arguments = null) * @method $this ftexplain(string $index, string $query, ?ExplainArguments $arguments = null) @@ -136,23 +136,23 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this ftsynupdate(string $index, string $synonymGroupId, ?SynUpdateArguments $arguments = null, string ...$terms) * @method $this fttagvals(string $index, string $fieldName) * @method $this get($key) - * @method $this getbit($key, $offset) - * @method $this getex(string $key, $modifier = '', $value = false) - * @method $this getrange($key, $start, $end) + * @method $this getbit(string $key, int $offset) + * @method $this getex(string $key, string $modifier = '', string|int $value = false) + * @method $this getrange(string $key, int $start, int $end) * @method $this getdel(string $key) - * @method $this getset($key, $value) + * @method $this getset(string $key, string|int|float $value) * @method $this incr($key) * @method $this incrby($key, $increment) * @method $this incrbyfloat($key, $increment) * @method $this mget(array $keys) * @method $this mset(array $dictionary) * @method $this msetnx(array $dictionary) - * @method $this psetex($key, $milliseconds, $value) - * @method $this set($key, $value, $expireResolution = null, $expireTTL = null, $flag = null) - * @method $this setbit($key, $offset, $value) - * @method $this setex($key, $seconds, $value) - * @method $this setnx($key, $value) - * @method $this setrange($key, $offset, $value) + * @method $this psetex(string $key, int $milliseconds, string|int|float $value) + * @method $this set(string $key, string|int|float $value, ?string $expireResolution = null, ?int $expireTTL = null, ?string $flag = null) + * @method $this setbit(string $key, int $offset, string|int|float $value) + * @method $this setex(string $key, int $seconds, string|int|float $value) + * @method $this setnx(string $key, string|int|float $value) + * @method $this setrange(string $key, int $offset, string|int|float $value) * @method $this strlen($key) * @method $this hdel($key, array $fields) * @method $this hexists($key, $field) @@ -172,14 +172,14 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this hmget($key, array $fields) * @method $this hmset($key, array $dictionary) * @method $this hrandfield(string $key, int $count = 1, bool $withValues = false) - * @method $this hscan($key, $cursor, ?array $options = null) + * @method $this hscan(string $key, int|string $cursor, ?array $options = null) * @method $this hset($key, $field, $value) * @method $this hsetnx($key, $field, $value) * @method $this httl(string $key, array $fields) * @method $this hpttl(string $key, array $fields) * @method $this hvals($key) * @method $this hstrlen($key, $field) - * @method $this jsonarrappend(string $key, string $path = '$', ...$value) + * @method $this jsonarrappend(string $key, string $path = '$', string ...$value) * @method $this jsonarrindex(string $key, string $path, string $value, int $start = 0, int $stop = 0) * @method $this jsonarrinsert(string $key, string $path, int $index, string ...$value) * @method $this jsonarrlen(string $key, string $path = '$') @@ -207,7 +207,7 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this brpoplpush($source, $destination, $timeout) * @method $this lcs(string $key1, string $key2, bool $len = false, bool $idx = false, int $minMatchLen = 0, bool $withMatchLen = false) * @method $this lindex($key, $index) - * @method $this linsert($key, $whence, $pivot, $value) + * @method $this linsert(string $key, string $whence, string|int|float $pivot, string|int|float $value) * @method $this llen($key) * @method $this lmove(string $source, string $destination, string $where, string $to) * @method $this lmpop(array $keys, string $modifier = 'left', int $count = 1) @@ -253,11 +253,11 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this tdigestreset(string $key) * @method $this tdigestrevrank(string $key, float ...$value) * @method $this tdigesttrimmed_mean(string $key, float $lowCutQuantile, float $highCutQuantile) - * @method $this topkadd(string $key, ...$items) - * @method $this topkincrby(string $key, ...$itemIncrement) + * @method $this topkadd(string $key, string ...$items) + * @method $this topkincrby(string $key, string|int|float ...$itemIncrement) * @method $this topkinfo(string $key) * @method $this topklist(string $key, bool $withCount = false) - * @method $this topkquery(string $key, ...$items) + * @method $this topkquery(string $key, string ...$items) * @method $this topkreserve(string $key, int $topK, int $width = 8, int $depth = 7, float $decay = 0.9) * @method $this tsadd(string $key, int $timestamp, float $value, ?AddArguments $arguments = null) * @method $this tsalter(string $key, ?TSAlterArguments $arguments = null) @@ -271,11 +271,11 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this tsinfo(string $key, ?InfoArguments $arguments = null) * @method $this tsmadd(mixed ...$keyTimestampValue) * @method $this tsmget(MGetArguments $arguments, string ...$filterExpression) - * @method $this tsmrange($fromTimestamp, $toTimestamp, MRangeArguments $arguments) - * @method $this tsmrevrange($fromTimestamp, $toTimestamp, MRangeArguments $arguments) + * @method $this tsmrange(string|int|float $fromTimestamp, string|int|float $toTimestamp, MRangeArguments $arguments) + * @method $this tsmrevrange(string|int|float $fromTimestamp, string|int|float $toTimestamp, MRangeArguments $arguments) * @method $this tsqueryindex(string ...$filterExpression) - * @method $this tsrange(string $key, $fromTimestamp, $toTimestamp, ?RangeArguments $arguments = null) - * @method $this tsrevrange(string $key, $fromTimestamp, $toTimestamp, ?RangeArguments $arguments = null) + * @method $this tsrange(string $key, string|int|float $fromTimestamp, string|int|float $toTimestamp, ?RangeArguments $arguments = null) + * @method $this tsrevrange(string $key, string|int|float $fromTimestamp, string|int|float $toTimestamp, ?RangeArguments $arguments = null) * @method $this zadd($key, array $membersAndScoresDictionary) * @method $this zcard($key) * @method $this zcount($key, $min, $max) @@ -310,8 +310,8 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this pfadd($key, array $elements) * @method $this pfmerge($destinationKey, array|string $sourceKeys) * @method $this pfcount(array|string $keys) - * @method $this pubsub($subcommand, $argument) - * @method $this publish($channel, $message) + * @method $this pubsub(string $subcommand, string|int|float $argument) + * @method $this publish(string $channel, string|int|float $message) * @method $this discard() * @method $this exec() * @method $this multi() @@ -322,7 +322,7 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this eval_ro(string $script, array $keys, ...$argument) * @method $this evalsha($script, $numkeys, $keyOrArg1 = null, $keyOrArgN = null) * @method $this evalsha_ro(string $sha1, array $keys, ...$argument) - * @method $this script($subcommand, $argument = null) + * @method $this script(string $subcommand, $argument = null) * @method $this shutdown(?bool $noSave = null, bool $now = false, bool $force = false, bool $abort = false) * @method $this auth($password) * @method $this echo($message) @@ -330,24 +330,24 @@ use Predis\Command\Redis\Container\Search\FTCURSOR; * @method $this select($database) * @method $this bgrewriteaof() * @method $this bgsave() - * @method $this client($subcommand, $argument = null) - * @method $this config($subcommand, $argument = null) + * @method $this client(string $subcommand, $argument = null) + * @method $this config(string $subcommand, $argument = null) * @method $this dbsize() * @method $this flushall() * @method $this flushdb() - * @method $this info($section = null) + * @method $this info(?string $section = null) * @method $this lastsave() * @method $this save() * @method $this slaveof($host, $port) - * @method $this slowlog($subcommand, $argument = null) + * @method $this slowlog(string $subcommand, $argument = null) * @method $this time() * @method $this command() - * @method $this geoadd($key, $longitude, $latitude, $member) + * @method $this geoadd(string $key, string|float $longitude, string|float $latitude, string $member) * @method $this geohash($key, array $members) * @method $this geopos($key, array $members) - * @method $this geodist($key, $member1, $member2, $unit = null) - * @method $this georadius($key, $longitude, $latitude, $radius, $unit, ?array $options = null) - * @method $this georadiusbymember($key, $member, $radius, $unit, ?array $options = null) + * @method $this geodist(string $key, string $member1, string $member2, string $unit = null) + * @method $this georadius(string $key, string|float $longitude, string|float $latitude, int $radius, string $unit, ?array $options = null) + * @method $this georadiusbymember(string $key, string $member, int $radius, string $unit, ?array $options = null) * @method $this geosearch(string $key, FromInterface $from, ByInterface $by, ?string $sorting = null, int $count = -1, bool $any = false, bool $withCoord = false, bool $withDist = false, bool $withHash = false) * @method $this geosearchstore(string $destination, string $source, FromInterface $from, ByInterface $by, ?string $sorting = null, int $count = -1, bool $any = false, bool $storeDist = false) * diff --git a/src/ClientInterface.php b/src/ClientInterface.php index d4d8aa69..316990df 100644 --- a/src/ClientInterface.php +++ b/src/ClientInterface.php @@ -66,7 +66,7 @@ use Predis\Response\Status; * @method int expiretime(string $key) * @method array keys(string $pattern) * @method int move(string $key, int $db) - * @method mixed object($subcommand, string $key) + * @method mixed object(string $subcommand, string $key) * @method int persist(string $key) * @method int pexpire(string $key, int $milliseconds) * @method int pexpireat(string $key, int $timestamp) @@ -74,37 +74,37 @@ use Predis\Response\Status; * @method string|null randomkey() * @method mixed rename(string $key, string $target) * @method int renamenx(string $key, string $target) - * @method array scan($cursor, ?array $options = null) + * @method array scan(int|string $cursor, ?array $options = null) * @method array sort(string $key, ?array $options = null) * @method array sort_ro(string $key, ?string $byPattern = null, ?LimitOffsetCount $limit = null, array $getPatterns = [], ?string $sorting = null, bool $alpha = false) * @method int ttl(string $key) * @method mixed type(string $key) * @method int append(string $key, $value) - * @method int bfadd(string $key, $item) - * @method int bfexists(string $key, $item) + * @method int bfadd(string $key, string $item) + * @method int bfexists(string $key, string $item) * @method array bfinfo(string $key, string $modifier = '') * @method array bfinsert(string $key, int $capacity = -1, float $error = -1, int $expansion = -1, bool $noCreate = false, bool $nonScaling = false, string ...$item) * @method Status bfloadchunk(string $key, int $iterator, $data) - * @method array bfmadd(string $key, ...$item) - * @method array bfmexists(string $key, ...$item) + * @method array bfmadd(string $key, string ...$item) + * @method array bfmexists(string $key, string ...$item) * @method Status bfreserve(string $key, float $errorRate, int $capacity, int $expansion = -1, bool $nonScaling = false) * @method array bfscandump(string $key, int $iterator) * @method int bitcount(string $key, $start = null, $end = null, string $index = 'byte') - * @method int bitop($operation, $destkey, $key) - * @method array|null bitfield(string $key, $subcommand, ...$subcommandArg) + * @method int bitop(string $operation, string $destkey, string $key) + * @method array|null bitfield(string $key, string $subcommand, ...$subcommandArg) * @method array|null bitfield_ro(string $key, ?array $encodingOffsetMap = null) - * @method int bitpos(string $key, $bit, $start = null, $end = null, string $index = 'byte') + * @method int bitpos(string $key, int $bit, ?int $start = null, ?int $end = null, string $index = 'byte') * @method array blmpop(int $timeout, array $keys, string $modifier = 'left', int $count = 1) * @method array bzpopmax(array $keys, int $timeout) * @method array bzpopmin(array $keys, int $timeout) * @method array bzmpop(int $timeout, array $keys, string $modifier = 'min', int $count = 1) - * @method int cfadd(string $key, $item) - * @method int cfaddnx(string $key, $item) - * @method int cfcount(string $key, $item) - * @method int cfdel(string $key, $item) - * @method int cfexists(string $key, $item) + * @method int cfadd(string $key, string $item) + * @method int cfaddnx(string $key, string $item) + * @method int cfcount(string $key, string $item) + * @method int cfdel(string $key, string $item) + * @method int cfexists(string $key, string $item) * @method Status cfloadchunk(string $key, int $iterator, $data) - * @method int cfmexists(string $key, ...$item) + * @method int cfmexists(string $key, string ...$item) * @method array cfinfo(string $key) * @method array cfinsert(string $key, int $capacity = -1, bool $noCreate = false, string ...$item) * @method array cfinsertnx(string $key, int $capacity = -1, bool $noCreate = false, string ...$item) @@ -128,8 +128,8 @@ use Predis\Response\Status; * @method Status ftaliasupdate(string $alias, string $index) * @method Status ftalter(string $index, FieldInterface[] $schema, ?AlterArguments $arguments = null) * @method Status ftcreate(string $index, FieldInterface[] $schema, ?CreateArguments $arguments = null) - * @method int ftdictadd(string $dict, ...$term) - * @method int ftdictdel(string $dict, ...$term) + * @method int ftdictadd(string $dict, string ...$term) + * @method int ftdictdel(string $dict, string ...$term) * @method array ftdictdump(string $dict) * @method Status ftdropindex(string $index, ?DropArguments $arguments = null) * @method string ftexplain(string $index, string $query, ?ExplainArguments $arguments = null) @@ -145,23 +145,23 @@ use Predis\Response\Status; * @method Status ftsynupdate(string $index, string $synonymGroupId, ?SynUpdateArguments $arguments = null, string ...$terms) * @method array fttagvals(string $index, string $fieldName) * @method string|null get(string $key) - * @method int getbit(string $key, $offset) - * @method int|null getex(string $key, $modifier = '', $value = false) - * @method string getrange(string $key, $start, $end) + * @method int getbit(string $key, int $offset) + * @method int|null getex(string $key, string $modifier = '', int|string $value = false) + * @method string getrange(string $key, int $start, int $end) * @method string getdel(string $key) - * @method string|null getset(string $key, $value) + * @method string|null getset(string $key, string|int|float $value) * @method int incr(string $key) * @method int incrby(string $key, int $increment) * @method string incrbyfloat(string $key, int|float $increment) * @method array mget(string[]|string $keyOrKeys, string ...$keys = null) * @method mixed mset(array $dictionary) * @method int msetnx(array $dictionary) - * @method Status psetex(string $key, $milliseconds, $value) - * @method Status|null set(string $key, $value, $expireResolution = null, $expireTTL = null, $flag = null) - * @method int setbit(string $key, $offset, $value) - * @method Status setex(string $key, $seconds, $value) - * @method int setnx(string $key, $value) - * @method int setrange(string $key, $offset, $value) + * @method Status psetex(string $key, int $milliseconds, string|int|float $value) + * @method Status|null set(string $key, string|int|float $value, ?string $expireResolution = null, ?int $expireTTL = null, ?string $flag = null) + * @method int setbit(string $key, int $offset, string|int|float $value) + * @method Status setex(string $key, int $seconds, string|int|float $value) + * @method int setnx(string $key, string|int|float $value) + * @method int setrange(string $key, int $offset, string|int|float $value) * @method int strlen(string $key) * @method int hdel(string $key, array $fields) * @method int hexists(string $key, string $field) @@ -181,14 +181,14 @@ use Predis\Response\Status; * @method array hmget(string $key, array $fields) * @method mixed hmset(string $key, array $dictionary) * @method array hrandfield(string $key, int $count = 1, bool $withValues = false) - * @method array hscan(string $key, $cursor, ?array $options = null) + * @method array hscan(string $key, int|string $cursor, ?array $options = null) * @method int hset(string $key, string $field, string $value) * @method int hsetnx(string $key, string $field, string $value) * @method array|null httl(string $key, array $fields) * @method array|null hpttl(string $key, array $fields) * @method array hvals(string $key) * @method int hstrlen(string $key, string $field) - * @method array jsonarrappend(string $key, string $path = '$', ...$value) + * @method array jsonarrappend(string $key, string $path = '$', string ...$value) * @method array jsonarrindex(string $key, string $path, string $value, int $start = 0, int $stop = 0) * @method array jsonarrinsert(string $key, string $path, int $index, string ...$value) * @method array jsonarrlen(string $key, string $path = '$') @@ -216,7 +216,7 @@ use Predis\Response\Status; * @method string|null brpoplpush(string $source, string $destination, int|float $timeout) * @method mixed lcs(string $key1, string $key2, bool $len = false, bool $idx = false, int $minMatchLen = 0, bool $withMatchLen = false) * @method string|null lindex(string $key, int $index) - * @method int linsert(string $key, $whence, $pivot, $value) + * @method int linsert(string $key, string $whence, string|int|float $pivot, string|int|float $value) * @method int llen(string $key) * @method string lmove(string $source, string $destination, string $where, string $to) * @method array|null lmpop(array $keys, string $modifier = 'left', int $count = 1) @@ -263,11 +263,11 @@ use Predis\Response\Status; * @method Status tdigestreset(string $key) * @method array tdigestrevrank(string $key, float ...$value) * @method string tdigesttrimmed_mean(string $key, float $lowCutQuantile, float $highCutQuantile) - * @method array topkadd(string $key, ...$items) - * @method array topkincrby(string $key, ...$itemIncrement) + * @method array topkadd(string $key, string ...$items) + * @method array topkincrby(string $key, string|int|float ...$itemIncrement) * @method array topkinfo(string $key) * @method array topklist(string $key, bool $withCount = false) - * @method array topkquery(string $key, ...$items) + * @method array topkquery(string $key, string|int|float ...$items) * @method Status topkreserve(string $key, int $topK, int $width = 8, int $depth = 7, float $decay = 0.9) * @method int tsadd(string $key, int $timestamp, float $value, ?AddArguments $arguments = null) * @method Status tsalter(string $key, ?TSAlterArguments $arguments = null) @@ -281,11 +281,11 @@ use Predis\Response\Status; * @method array tsinfo(string $key, ?InfoArguments $arguments = null) * @method array tsmadd(mixed ...$keyTimestampValue) * @method array tsmget(MGetArguments $arguments, string ...$filterExpression) - * @method array tsmrange($fromTimestamp, $toTimestamp, MRangeArguments $arguments) - * @method array tsmrevrange($fromTimestamp, $toTimestamp, MRangeArguments $arguments) + * @method array tsmrange(string|int|float $fromTimestamp, string|int|float $toTimestamp, MRangeArguments $arguments) + * @method array tsmrevrange(string|int|float $fromTimestamp, string|int|float $toTimestamp, MRangeArguments $arguments) * @method array tsqueryindex(string ...$filterExpression) - * @method array tsrange(string $key, $fromTimestamp, $toTimestamp, ?RangeArguments $arguments = null) - * @method array tsrevrange(string $key, $fromTimestamp, $toTimestamp, ?RangeArguments $arguments = null) + * @method array tsrange(string $key, string|int|float $fromTimestamp, string|int|float $toTimestamp, ?RangeArguments $arguments = null) + * @method array tsrevrange(string $key, string|int|float $fromTimestamp, string|int|float $toTimestamp, ?RangeArguments $arguments = null) * @method string xadd(string $key, array $dictionary, string $id = '*', ?array $options = null) * @method int xdel(string $key, string ...$id) * @method int xlen(string $key) @@ -329,8 +329,8 @@ use Predis\Response\Status; * @method int pfadd(string $key, array $elements) * @method mixed pfmerge(string $destinationKey, array|string $sourceKeys) * @method int pfcount(string[]|string $keyOrKeys, string ...$keys = null) - * @method mixed pubsub($subcommand, $argument) - * @method int publish($channel, $message) + * @method mixed pubsub(string $subcommand, string|int|float $argument) + * @method int publish(string $channel, string|int|float $message) * @method mixed discard() * @method array|null exec() * @method mixed multi() @@ -341,7 +341,7 @@ use Predis\Response\Status; * @method mixed eval_ro(string $script, array $keys, ...$argument) * @method mixed evalsha(string $script, int $numkeys, string ...$keyOrArg = null) * @method mixed evalsha_ro(string $sha1, array $keys, ...$argument) - * @method mixed script($subcommand, $argument = null) + * @method mixed script(string $subcommand, $argument = null) * @method Status shutdown(?bool $noSave = null, bool $now = false, bool $force = false, bool $abort = false) * @method mixed auth(string $password) * @method string echo(string $message) @@ -349,24 +349,24 @@ use Predis\Response\Status; * @method mixed select(int $database) * @method mixed bgrewriteaof() * @method mixed bgsave() - * @method mixed client($subcommand, $argument = null) - * @method mixed config($subcommand, $argument = null) + * @method mixed client(string $subcommand, $argument = null) + * @method mixed config(string $subcommand, $argument = null) * @method int dbsize() * @method mixed flushall() * @method mixed flushdb() - * @method array info($section = null) + * @method array info(?string $section = null) * @method int lastsave() * @method mixed save() * @method mixed slaveof(string $host, int $port) - * @method mixed slowlog($subcommand, $argument = null) + * @method mixed slowlog(string $subcommand, $argument = null) * @method array time() * @method array command() - * @method int geoadd(string $key, $longitude, $latitude, $member) + * @method int geoadd(string $key, string|float $longitude, string|float $latitude, string $member) * @method array geohash(string $key, array $members) * @method array geopos(string $key, array $members) - * @method string|null geodist(string $key, $member1, $member2, $unit = null) - * @method array georadius(string $key, $longitude, $latitude, $radius, $unit, ?array $options = null) - * @method array georadiusbymember(string $key, $member, $radius, $unit, ?array $options = null) + * @method string|null geodist(string $key, string $member1, string $member2, string $unit = null) + * @method array georadius(string $key, string|float $longitude, string|float $latitude, int $radius, string $unit, ?array $options = null) + * @method array georadiusbymember(string $key, string $member, int $radius, string $unit, ?array $options = null) * @method array geosearch(string $key, FromInterface $from, ByInterface $by, ?string $sorting = null, int $count = -1, bool $any = false, bool $withCoord = false, bool $withDist = false, bool $withHash = false) * @method int geosearchstore(string $destination, string $source, FromInterface $from, ByInterface $by, ?string $sorting = null, int $count = -1, bool $any = false, bool $storeDist = false) *