Skip to content

Commit

Permalink
Provide empty array if the configuration has no zones
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
sebdesign committed Sep 30, 2020
1 parent 7195629 commit 50603d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `artisan-cloudflare` will be documented in this file.

## 2.4.1 - 2020-09-30

- Provide empty array if the configuration has no zones

## 2.4.0 - 2020-09-07

- Add support for Laravel 8
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function registerCommands()
{
$this->app->bind(Commands\Cache\Purge::class, function () {
return new Commands\Cache\Purge(
$this->app['config']['cloudflare.zones']
$this->app['config']['cloudflare.zones'] ?? []
);
});

Expand Down

0 comments on commit 50603d0

Please sign in to comment.