8000 [HttpClient] fix checking for unset property on PHP <= 7.1.4 · symfony/symfony@721996a · GitHub
[go: up one dir, main page]

Skip to content

Commit 721996a

Browse files
[HttpClient] fix checking for unset property on PHP <= 7.1.4
1 parent 0ed2a8f commit 721996a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/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)
0