Skip to content

Commit

Permalink
default to array
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Aug 20, 2020
1 parent f06ca4e commit ee4c012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listeners/AddFromSubmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public function handle(SubmissionCreated $event)

private function formConfig(string $handle): array
{
return collect(config('mailchimp.forms'))->firstWhere('form', $handle) ?? [];
return collect(config('mailchimp.forms', []))->firstWhere('form', $handle) ?? [];
}
}

0 comments on commit ee4c012

Please sign in to comment.