Skip to content

Commit 28ce846

Browse files
committed
Update FixerApplication.php
1 parent 63113cc commit 28ce846

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Command/FixerApplication.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use PHPStan\Internal\ComposerHelper;
2424
use PHPStan\Internal\DirectoryCreator;
2525
use PHPStan\Internal\DirectoryCreatorException;
26+
use PHPStan\Internal\HttpClientFactory;
2627
use PHPStan\PhpDoc\StubFilesProvider;
2728
use PHPStan\Process\ProcessCanceledException;
2829
use PHPStan\Process\ProcessCrashedException;
@@ -325,7 +326,7 @@ private function downloadPhar(
325326
$output->writeln('<fg=green>Checking if there\'s a new PHPStan Pro release...</>');
326327
}
327328

328-
$client = new Client([
329+
$client = HttpClientFactory::createClient([
329330
RequestOptions::TIMEOUT => 30,
330331
RequestOptions::CONNECT_TIMEOUT => 5,
331332
]);

0 commit comments

Comments
 (0)