Skip to content

Commit d445691

Browse files
authored
Merge pull request #111 from rubendahl/compat-php7.3-avoid-null-coal-assign-op
Compatibility PHP 7.3; remove null coalescing assignment operator use.
2 parents 544af31 + e3d281f commit d445691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App/Http/Traits/UserAgentDetails.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static function localeLang($locale)
102102
}
103103

104104
$a = explode(',', $locale);
105-
$a ??= explode(';', $a[1]);
105+
$a = $a ?? explode(';', $a[1]);
106106

107107
return $a[0];
108108
}

0 commit comments

Comments
 (0)