diff --git a/src/Command/FixerApplication.php b/src/Command/FixerApplication.php index 63e071cdde..b89e02f082 100644 --- a/src/Command/FixerApplication.php +++ b/src/Command/FixerApplication.php @@ -338,6 +338,9 @@ private function downloadPhar( $dnsConfig = new Config(); $dnsConfig->nameservers = $this->dnsServers; + $loop = new StreamSelectLoop(); + Loop::set($loop); // @phpstan-ignore staticMethod.internal (required because of the await() call below) + $client = new Browser( new Connector( [ @@ -347,7 +350,9 @@ private function downloadPhar( ], 'dns' => $dnsConfig, ], + $loop, ), + $loop, ); /** @@ -388,7 +393,7 @@ private function downloadPhar( $this->printDownloadError($output, $e); }); - Loop::run(); + $loop->run(); fclose($pharPathResource);