Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Commit

Permalink
Fallback to empty array if config doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Indal committed Aug 30, 2017
1 parent 59389c4 commit e5d2dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MarkdownServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function boot()
public function register()
{
$this->app->singleton(Parser::class, function ($app) {
return new Parser(new ParsedownDriver(config('markdown')));
return new Parser(new ParsedownDriver(config('markdown') ?? []));
});

$this->app->bind('markdown', Parser::class);
Expand Down

0 comments on commit e5d2dd0

Please sign in to comment.