Selaa lähdekoodia

Update SPOP's @method signature in phpdoc.

SPOP accepts the optional "count" argument since Redis 3.2.
Daniele Alessandri 8 vuotta sitten
vanhempi
commit
02ed5a2f4e
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      src/ClientContextInterface.php
  2. 1 1
      src/ClientInterface.php

+ 1 - 1
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)

+ 1 - 1
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)