From 4a8033a91ad28858f90b49230064488ac20c8689 Mon Sep 17 00:00:00 2001 From: Jochen Sengier Date: Fri, 29 Nov 2024 11:05:53 +0100 Subject: [PATCH] PHP 8.4 php_uname ValueError --- src/Translator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Translator.php b/src/Translator.php index 4b3852b..1d1d650 100644 --- a/src/Translator.php +++ b/src/Translator.php @@ -763,7 +763,7 @@ private static function constructUserAgentString(bool $sendPlatformInfo, ?AppInf $libraryInfoStr = "deepl-php/$libraryVersion"; try { if ($sendPlatformInfo) { - $platformStr = php_uname('s r v m'); + $platformStr = php_uname('s') . ' ' . php_uname('r') . ' ' . php_uname('v') . php_uname('m'); $phpVersion = phpversion(); $libraryInfoStr .= " ($platformStr) php/$phpVersion"; $curlVer = curl_version()['version'];