Skip to content

Commit

Permalink
Merge pull request #7 from kielabokkie/hotfix/no-defaults-fallback
Browse files Browse the repository at this point in the history
Default to empty array when defaults not found
  • Loading branch information
kielabokkie authored May 24, 2020
2 parents bc7e29b + 0e13c10 commit 6880290
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Concealer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class Concealer
public function conceal($input, array $keys = [])
{
// Merge default keys with given keys
$this->keys = array_unique(array_merge(config('conceal.defaults'), $keys));
$this->keys = array_unique(
array_merge(config('conceal.defaults', []), $keys)
);

if ($input instanceof Collection) {
$output = $this->handleCollection($input);
Expand Down

0 comments on commit 6880290

Please sign in to comment.