From 02ed5a2f4e3f30ad772845f4c9e8bacb8482f8c7 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Tue, 24 May 2016 23:14:58 +0200 Subject: [PATCH] Update SPOP's @method signature in phpdoc. SPOP accepts the optional "count" argument since Redis 3.2. --- src/ClientContextInterface.php | 2 +- src/ClientInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ClientContextInterface.php b/src/ClientContextInterface.php index 41e81255..a01961a4 100644 --- a/src/ClientContextInterface.php +++ b/src/ClientContextInterface.php @@ -98,7 +98,7 @@ use Predis\Command\CommandInterface; * @method $this sismember($key, $member) * @method $this smembers($key) * @method $this smove($source, $destination, $member) - * @method $this spop($key) + * @method $this spop($key, $count = null) * @method $this srandmember($key, $count = null) * @method $this srem($key, $member) * @method $this sscan($key, $cursor, array $options = null) diff --git a/src/ClientInterface.php b/src/ClientInterface.php index a7410e99..893e5365 100644 --- a/src/ClientInterface.php +++ b/src/ClientInterface.php @@ -106,7 +106,7 @@ use Predis\Profile\ProfileInterface; * @method int sismember($key, $member) * @method array smembers($key) * @method int smove($source, $destination, $member) - * @method string spop($key) + * @method string spop($key, $count = null) * @method string srandmember($key, $count = null) * @method int srem($key, $member) * @method array sscan($key, $cursor, array $options = null)