diff --git a/src/Watchers/RedisWatcher.php b/src/Watchers/RedisWatcher.php index b9835505f..c344a957e 100644 --- a/src/Watchers/RedisWatcher.php +++ b/src/Watchers/RedisWatcher.php @@ -56,6 +56,10 @@ private function formatCommand($command, $parameters) $parameters = collect($parameters)->map(function ($parameter) { if (is_array($parameter)) { return collect($parameter)->map(function ($value, $key) { + if (is_array($value)) { + return json_encode($value); + } + return is_int($key) ? $value : "{$key} {$value}"; })->implode(' '); }