diff --git a/.phpstan.dist.baseline.neon b/.phpstan.dist.baseline.neon index d2ece40d7a0..bdcefa4f78a 100644 --- a/.phpstan.dist.baseline.neon +++ b/.phpstan.dist.baseline.neon @@ -5076,12 +5076,6 @@ parameters: count: 18 path: app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php - - - rawMessage: 'Parameter #1 $error_code of function curl_strerror expects int, (CurlHandle|false) given.' - identifier: argument.type - count: 1 - path: app/code/core/Mage/Usa/Model/Shipping/Carrier/UpsAuth.php - - rawMessage: 'Parameter #3 $value of function curl_setopt expects bool, int given.' identifier: argument.type diff --git a/app/code/core/Mage/Usa/Model/Shipping/Carrier/UpsAuth.php b/app/code/core/Mage/Usa/Model/Shipping/Carrier/UpsAuth.php index 827766f9bf6..2e3afebfe8d 100644 --- a/app/code/core/Mage/Usa/Model/Shipping/Carrier/UpsAuth.php +++ b/app/code/core/Mage/Usa/Model/Shipping/Carrier/UpsAuth.php @@ -53,7 +53,7 @@ public function getAccessToken(string $clientId, string $clientSecret, string $c try { if ($responseData === false) { $code = curl_errno($ch); - $description = curl_strerror($ch); + $description = curl_strerror($code); $message = curl_error($ch); Mage::throwException("cURL Error: ($code) $description - \"$message\""); }