Skip to content

Commit d6da905

Browse files
committed
change RetryMiddleware param to TransferException
1 parent ff45f82 commit d6da905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/FileMakerConnection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use BlueFeather\EloquentFileMaker\Database\Schema\FMBuilder;
1111
use BlueFeather\EloquentFileMaker\Exceptions\FileMakerDataApiException;
1212
use GuzzleHttp\Exception\ConnectException;
13-
use GuzzleHttp\Exception\RequestException;
13+
use GuzzleHttp\Exception\TransferException;
1414
use GuzzleHttp\Middleware;
1515
use Illuminate\Database\Connection;
1616
use Illuminate\Http\Client\PendingRequest;
@@ -664,7 +664,7 @@ protected function retryMiddleware()
664664
$retries,
665665
RequestInterface $request,
666666
ResponseInterface $response = null,
667-
RequestException $exception = null
667+
TransferException $exception = null
668668
) {
669669
// Limit the number of retries to 5
670670
if ($retries >= $this->retries) {

0 commit comments

Comments
 (0)