Skip to content

Commit

Permalink
Use array_merge instead of array addition
Browse files Browse the repository at this point in the history
So we can override options while initializing the client.
  • Loading branch information
egesu authored May 30, 2024
1 parent c8d9b9b commit 309389c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/GuzzleHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private function request(
->request(
$method->name,
$uri,
[
array_merge([
'base_uri' => self::BASE_URI,
'http_errors' => false,
'headers' => [
Expand All @@ -144,7 +144,7 @@ private function request(
],
'query' => $query,
'json' => $body,
] + $this->options,
], $this->options),
);
} catch (Throwable $exception) {
throw new HttpException($exception->getMessage());
Expand Down

0 comments on commit 309389c

Please sign in to comment.