diff --git a/src/OneSignalClient.php b/src/OneSignalClient.php index 1a18adf..acdf8f1 100644 --- a/src/OneSignalClient.php +++ b/src/OneSignalClient.php @@ -91,7 +91,7 @@ public function __construct($appId, $restApiKey, $userAuthKey, $guzzleClientTime private function createGuzzleHandler() { return tap(HandlerStack::create(new CurlHandler()), function (HandlerStack $handlerStack) { - $handlerStack->push(Middleware::retry(function ($retries, Psr7Request $request, Psr7Response $response = null, RequestException $exception = null) { + $handlerStack->push(Middleware::retry(function ($retries, Psr7Request $request, Psr7Response $response = null, RequestException|ConnectException $exception = null) { if ($retries >= $this->maxRetries) { return false; }