We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bac0f4 commit d76213bCopy full SHA for d76213b
1 file changed
src/PHPQueue/Backend/Predis.php
@@ -205,7 +205,7 @@ public function incrKey($key, $count=1)
205
if (!$this->keyExists($key)) {
206
return false;
207
}
208
- if ($count > 1) {
+ if ($count === 1) {
209
$status = $this->getConnection()->incr($key);
210
} else {
211
$status = $this->getConnection()->incrby($key, $count);
@@ -219,7 +219,7 @@ public function decrKey($key, $count=1)
219
220
221
222
223
$status = $this->getConnection()->decr($key);
224
225
$status = $this->getConnection()->decrby($key, $count);
0 commit comments