Skip to content

Commit becfdfb

Browse files
[HttpClient] Fix the CS fix
1 parent 992d84c commit becfdfb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

HttpClientTrait.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,11 @@ private static function mergeDefaultOptions(array $options, array $defaultOption
195195

196196
$options += $defaultOptions;
197197

198-
foreach (self::$emptyDefaults ?? [] as $k => $v) {
199-
if (!isset($options[$k])) {
200-
$options[$k] = $v;
198+
if (isset(self::$emptyDefaults)) {
199+
foreach (self::$emptyDefaults as $k => $v) {
200+
if (!isset($options[$k])) {
201+
$options[$k] = $v;
202+
}
201203
}
202204
}
203205

0 commit comments

Comments
 (0)