Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .phpstan.dist.baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Usa/Model/Shipping/Carrier/UpsAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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\"");
}
Expand Down
Loading