Skip to content

Commit

Permalink
PHP 8.4 php_uname ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
jochensengier authored and JanEbbing committed Nov 29, 2024
1 parent c49af6e commit cec309d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit cec309d

Please sign in to comment.