Skip to content

Commit 4034240

Browse files
[HttpClient] fix checking for unset property on PHP <= 7.1.4
1 parent a6b1a66 commit 4034240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HttpClientTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private static function mergeDefaultOptions(array $options, array $defaultOption
189189

190190
$options += $defaultOptions;
191191

192-
foreach (self::$emptyDefaults ?? [] as $k => $v) {
192+
foreach (isset(self::$emptyDefaults) ? self::$emptyDefaults : [] as $k => $v) {
193193
if (!isset($options[$k])) {
194194
$options[$k] = $v;
195195
}

0 commit comments

Comments
 (0)