From 6c551c13fa2cbd431b846a2dc9793b2341d93fd1 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Tue, 9 Jul 2019 14:24:48 +0100 Subject: [PATCH] Apply fix for deprecated zUnion and zInter --- src/Illuminate/Redis/Connections/PhpRedisConnection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Redis/Connections/PhpRedisConnection.php b/src/Illuminate/Redis/Connections/PhpRedisConnection.php index 146b7494ed7c..17fd5775bf7b 100644 --- a/src/Illuminate/Redis/Connections/PhpRedisConnection.php +++ b/src/Illuminate/Redis/Connections/PhpRedisConnection.php @@ -268,7 +268,7 @@ public function zrevrangebyscore($key, $min, $max, $options = []) */ public function zinterstore($output, $keys, $options = []) { - return $this->command('zInter', [$output, $keys, + return $this->command('zInterstore', [$output, $keys, $options['weights'] ?? null, $options['aggregate'] ?? 'sum', ]); @@ -284,7 +284,7 @@ public function zinterstore($output, $keys, $options = []) */ public function zunionstore($output, $keys, $options = []) { - return $this->command('zUnion', [$output, $keys, + return $this->command('zUnionstore', [$output, $keys, $options['weights'] ?? null, $options['aggregate'] ?? 'sum', ]);