Skip to content

Commit

Permalink
[HttpClient] Fix the CS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 27, 2022
1 parent 992d84c commit becfdfb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions HttpClientTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ private static function mergeDefaultOptions(array $options, array $defaultOption

$options += $defaultOptions;

foreach (self::$emptyDefaults ?? [] as $k => $v) {
if (!isset($options[$k])) {
$options[$k] = $v;
if (isset(self::$emptyDefaults)) {
foreach (self::$emptyDefaults as $k => $v) {
if (!isset($options[$k])) {
$options[$k] = $v;
}
}
}

Expand Down

0 comments on commit becfdfb

Please sign in to comment.