From 3702f24efca3a93bfca0770da7a6e376fb5646a3 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Mon, 24 Aug 2020 22:27:21 +0200 Subject: [PATCH] Fix more @method tags in interfaces. --- src/ClientContextInterface.php | 5 +++-- src/ClientInterface.php | 11 ++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/ClientContextInterface.php b/src/ClientContextInterface.php index 7e13f26b..d4dfc88c 100644 --- a/src/ClientContextInterface.php +++ b/src/ClientContextInterface.php @@ -39,6 +39,7 @@ use Predis\Command\CommandInterface; * @method $this bitcount($key, $start = null, $end = null) * @method $this bitop($operation, $destkey, $key) * @method $this bitfield($key, $subcommand, ...$subcommandArg) + * @method $this bitpos($key, $bit, $start = null, $end = null) * @method $this decr($key) * @method $this decrby($key, $decrement) * @method $this get($key) @@ -81,7 +82,7 @@ use Predis\Command\CommandInterface; * @method $this llen($key) * @method $this lpop($key) * @method $this lpush($key, array $values) - * @method $this lpushx($key, $value) + * @method $this lpushx($key, array $values) * @method $this lrange($key, $start, $stop) * @method $this lrem($key, $count, $value) * @method $this lset($key, $index, $value) @@ -89,7 +90,7 @@ use Predis\Command\CommandInterface; * @method $this rpop($key) * @method $this rpoplpush($source, $destination) * @method $this rpush($key, array $values) - * @method $this rpushx($key, $value) + * @method $this rpushx($key, array $values) * @method $this sadd($key, array $members) * @method $this scard($key) * @method $this sdiff(array|string $keys) diff --git a/src/ClientInterface.php b/src/ClientInterface.php index 99481e30..f61dcf63 100644 --- a/src/ClientInterface.php +++ b/src/ClientInterface.php @@ -46,7 +46,8 @@ use Predis\Profile\ProfileInterface; * @method int append($key, $value) * @method int bitcount($key, $start = null, $end = null) * @method int bitop($operation, $destkey, $key) - * @method array bitfield($key, $subcommand, ...$subcommandArg) + * @method array|null bitfield($key, $subcommand, ...$subcommandArg) + * @method int bitpos($key, $bit, $start = null, $end = null) * @method int decr($key) * @method int decrby($key, $decrement) * @method string|null get($key) @@ -89,7 +90,7 @@ use Predis\Profile\ProfileInterface; * @method int llen($key) * @method string|null lpop($key) * @method int lpush($key, array $values) - * @method int lpushx($key, $value) + * @method int lpushx($key, array $values) * @method array lrange($key, $start, $stop) * @method int lrem($key, $count, $value) * @method mixed lset($key, $index, $value) @@ -97,7 +98,7 @@ use Predis\Profile\ProfileInterface; * @method string|null rpop($key) * @method string|null rpoplpush($source, $destination) * @method int rpush($key, array $values) - * @method int rpushx($key, $value) + * @method int rpushx($key, array $values) * @method int sadd($key, array $members) * @method int scard($key) * @method array sdiff(array|string $keys) @@ -140,7 +141,7 @@ use Predis\Profile\ProfileInterface; * @method mixed pubsub($subcommand, $argument) * @method int publish($channel, $message) * @method mixed discard() - * @method array exec() + * @method array|null exec() * @method mixed multi() * @method mixed unwatch() * @method mixed watch($key) @@ -168,7 +169,7 @@ use Predis\Profile\ProfileInterface; * @method int geoadd($key, $longitude, $latitude, $member) * @method array geohash($key, array $members) * @method array geopos($key, array $members) - * @method string geodist($key, $member1, $member2, $unit = null) + * @method string|null geodist($key, $member1, $member2, $unit = null) * @method array georadius($key, $longitude, $latitude, $radius, $unit, array $options = null) * @method array georadiusbymember($key, $member, $radius, $unit, array $options = null) *