From 68b84b70b97a0a0072dfd1e47de7ba933eb2d72a Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Tue, 4 Sep 2018 17:59:37 +0100 Subject: [PATCH] Added default array value for redis config (#25443) --- src/Illuminate/Redis/RedisServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Redis/RedisServiceProvider.php b/src/Illuminate/Redis/RedisServiceProvider.php index eb2cd6a97474..2d419388001f 100755 --- a/src/Illuminate/Redis/RedisServiceProvider.php +++ b/src/Illuminate/Redis/RedisServiceProvider.php @@ -22,7 +22,7 @@ class RedisServiceProvider extends ServiceProvider public function register() { $this->app->singleton('redis', function ($app) { - $config = $app->make('config')->get('database.redis'); + $config = $app->make('config')->get('database.redis', []); return new RedisManager($app, Arr::pull($config, 'client', 'predis'), $config); });