Skip to content

Commit

Permalink
fix array_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Jul 26, 2024
1 parent 847310f commit 7f9632e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CookiesConsent.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getConsents(): array

return array_merge(
$this->getDefaultConsents(),
Arr::get($value, 'consents')
Arr::get($value, 'consents') ?? []
);
}

Expand Down

0 comments on commit 7f9632e

Please sign in to comment.