Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52dc25b

Browse files
committed
CS
1 parent b365e3a commit 52dc25b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Symfony/Component/HttpClient/Tests/RetryableHttpClientTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\HttpClient\Exception\ServerException;
16-
use Symfony\Component\HttpClient\Exception\TimeoutException;
1716
use Symfony\Component\HttpClient\Exception\TransportException;
1817
use Symfony\Component\HttpClient\HttpClient;
1918
use Symfony\Component\HttpClient\MockHttpClient;
@@ -250,7 +249,7 @@ public function testRetryOnErrorAssertContent()
250249
}
251250

252251
/**
253-
* Make sure we use the RetryableHttpClient on timeouts
252+
* Make sure we use the RetryableHttpClient on timeouts.
254253
*/
255254
public function testRetryOnTimeout()
256255
{
@@ -262,11 +261,13 @@ public function testRetryOnTimeout()
262261

263262
TestHttpServer::start();
264263

265-
$strategy = new class implements RetryStrategyInterface {
264+
$strategy = new class() implements RetryStrategyInterface {
266265
public $isCalled = false;
266+
267267
public function shouldRetry(AsyncContext $context, ?string $responseContent, ?TransportExceptionInterface $exception): ?bool
268268
{
269269
$this->isCalled = true;
270+
270271
return false;
271272
}
272273

0 commit comments

Comments
 (0)