Skip to content

Commit cec309d

Browse files
jochensengierJanEbbing
authored andcommitted
PHP 8.4 php_uname ValueError
1 parent c49af6e commit cec309d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Translator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ private static function constructUserAgentString(bool $sendPlatformInfo, ?AppInf
763763
$libraryInfoStr = "deepl-php/$libraryVersion";
764764
try {
765765
if ($sendPlatformInfo) {
766-
$platformStr = php_uname('s r v m');
766+
$platformStr = php_uname('s') . ' ' . php_uname('r') . ' ' . php_uname('v') . php_uname('m');
767767
$phpVersion = phpversion();
768768
$libraryInfoStr .= " ($platformStr) php/$phpVersion";
769769
$curlVer = curl_version()['version'];

0 commit comments

Comments
 (0)