Skip to content

Commit cc3b40d

Browse files
author
maaube
committed
Fix how configurations are merged with defaults, fixes Vinelab#96
1 parent 802dfae commit cc3b40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Vinelab/Cdn/Providers/AwsS3Provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function init($configurations)
126126
{
127127
// merge the received config array with the default configurations array to
128128
// fill missed keys with null or default values.
129-
$this->default = array_merge($this->default, $configurations);
129+
$this->default = array_replace_recursive($this->default, $configurations);
130130

131131
$supplier = [
132132
'provider_url' => $this->default['url'],

0 commit comments

Comments
 (0)