Skip to content

Commit

Permalink
Added default array value for redis config (#25443)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbytaylor authored and taylorotwell committed Sep 4, 2018
1 parent df38587 commit 68b84b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Redis/RedisServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 68b84b7

Please sign in to comment.