fix TransportExceptionInterface
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user