Skip to content

Commit

Permalink
Add missing "flags" to zadd options list... (laravel#39538)
Browse files Browse the repository at this point in the history
  • Loading branch information
telkins authored Nov 8, 2021
1 parent 2ecbb45 commit b2dfaca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Redis/Connections/PhpRedisConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function zadd($key, ...$dictionary)
$options = [];

foreach (array_slice($dictionary, 0, 3) as $i => $value) {
if (in_array($value, ['nx', 'xx', 'ch', 'incr', 'NX', 'XX', 'CH', 'INCR'], true)) {
if (in_array($value, ['nx', 'xx', 'ch', 'incr', 'gt', 'lt', 'NX', 'XX', 'CH', 'INCR', 'GT', 'LT'], true)) {
$options[] = $value;

unset($dictionary[$i]);
Expand Down

0 comments on commit b2dfaca

Please sign in to comment.