fix TransportExceptionInterface

This commit is contained in:
O K
2025-12-08 21:20:39 +02:00
parent 416e73d50e
commit da38b3ccfd

View File

@@ -4,7 +4,7 @@ if (!defined('_PS_VERSION_')) {
}
use Symfony\Component\HttpClient\HttpClient;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
class Usps_Api_Bridge extends Module
{
@@ -558,7 +558,7 @@ class Usps_Api_Bridge extends Module
]);
try {
$response[] = $client->request('POST', 'https://panariga.com/apitestview/9ZWFWsHaaITIwp1D9VrT33bQgXFOAdZ2mww9yG7oFcDimmW5zmDHdQ6vApX2laUc', [
$response[] = $client->request('POST', 'https://panariga.com/apitest/9ZWFWsHaaITIwp1D9VrT33bQgXFOAdZ2mww9yG7oFcDimmW5zmDHdQ6vApX2laUc', [
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
@@ -567,7 +567,7 @@ class Usps_Api_Bridge extends Module
$message
],
]);
} catch (Throwable $t) {
} catch (TransportExceptionInterface $t) {
}
}
}