Skip to content

Commit dd1fb8c

Browse files
committed
Fixed runway-config.json issue.
1 parent b6f28af commit dd1fb8c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commands/ConfigSetCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ public function setConfigJson(string $jsonPath, string $key, $value = ''): int {
169169
}
170170
$ref = &$ref[$part];
171171
}
172-
$ref = $decoded;
172+
if (is_array($ref) && is_array($decoded)) {
173+
$ref = array_merge($ref, $decoded);
174+
} else {
175+
$ref = $decoded;
176+
}
173177

174178
// Backup original if present
175179
if (is_file($jsonPath) === true) {

0 commit comments

Comments
 (0)