From 7db2e611b5608fcd7bdcfeb70a4f08120bd09b42 Mon Sep 17 00:00:00 2001 From: Warrick Bayman Date: Sun, 17 Mar 2024 22:04:59 +0200 Subject: [PATCH] Recursively replace common config for targets --- src/Platoon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Platoon.php b/src/Platoon.php index bc4ed4e..44f947b 100644 --- a/src/Platoon.php +++ b/src/Platoon.php @@ -41,7 +41,7 @@ public function targets(): Collection */ public function target(string $name, ?string $release = null): Target { - $data = array_merge($this->common(), Arr::get($this->config, 'targets.'.$name)); + $data = array_replace_recursive($this->common(), Arr::get($this->config, 'targets.'.$name)); return new Target($name, [ ...$data,