We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63113cc commit 28ce846Copy full SHA for 28ce846
src/Command/FixerApplication.php
@@ -23,6 +23,7 @@
23
use PHPStan\Internal\ComposerHelper;
24
use PHPStan\Internal\DirectoryCreator;
25
use PHPStan\Internal\DirectoryCreatorException;
26
+use PHPStan\Internal\HttpClientFactory;
27
use PHPStan\PhpDoc\StubFilesProvider;
28
use PHPStan\Process\ProcessCanceledException;
29
use PHPStan\Process\ProcessCrashedException;
@@ -325,7 +326,7 @@ private function downloadPhar(
325
326
$output->writeln('<fg=green>Checking if there\'s a new PHPStan Pro release...</>');
327
}
328
- $client = new Client([
329
+ $client = HttpClientFactory::createClient([
330
RequestOptions::TIMEOUT => 30,
331
RequestOptions::CONNECT_TIMEOUT => 5,
332
]);
0 commit comments