Skip to content

Commit e3442fa

Browse files
committed
Fix default options
1 parent 9d5a1bf commit e3442fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Atomx/ApiClient.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ private function getOptions($options)
8989
{
9090
$defaultOptions = $this->getDefaultOptions();
9191

92-
// TODO: Use a merge that overrides already set values
93-
$options = array_merge_recursive($defaultOptions, $options);
92+
$options = array_replace_recursive($defaultOptions, $options);
9493

9594
return $options;
9695
}

Atomx/Resources/Report.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public function run($json, $timeout = 600)
1313
{
1414
$this->returnStream = true;
1515

16-
$stream = $this->postUrl('report?download', compact('json'), [
16+
$stream = $this->postUrl('report?download', [
17+
'json' => $json,
1718
'timeout' => $timeout,
1819
'connect_timeout' => 20
1920
]);

0 commit comments

Comments
 (0)