Skip to content

Commit

Permalink
Recursively replace common config for targets
Browse files Browse the repository at this point in the history
  • Loading branch information
warrickbayman committed Mar 17, 2024
1 parent 37f3921 commit 7db2e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Platoon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7db2e61

Please sign in to comment.