diff --git a/src/Composer/Downloader/ZipDownloader.php b/src/Composer/Downloader/ZipDownloader.php index 0405cdf9c..23ad6db76 100644 --- a/src/Composer/Downloader/ZipDownloader.php +++ b/src/Composer/Downloader/ZipDownloader.php @@ -160,8 +160,6 @@ class ZipDownloader extends ArchiveDownloader return $tryFallback(new \RuntimeException('Failed to extract '.$package->getName().': ('.$process->getExitCode().') '.$command."\n\n".$output)); } }); - } catch (\Exception $e) { - return $tryFallback($e); } catch (\Throwable $e) { return $tryFallback($e); } @@ -195,8 +193,6 @@ class ZipDownloader extends ArchiveDownloader } } catch (\ErrorException $e) { $processError = new \RuntimeException('The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems): '.$e->getMessage(), 0, $e); - } catch (\Exception $e) { - $processError = $e; } catch (\Throwable $e) { $processError = $e; } diff --git a/src/Composer/Util/ProcessExecutor.php b/src/Composer/Util/ProcessExecutor.php index 45c9957e6..8c1a3c233 100644 --- a/src/Composer/Util/ProcessExecutor.php +++ b/src/Composer/Util/ProcessExecutor.php @@ -255,10 +255,6 @@ class ProcessExecutor } else { $process = new Process($command, $cwd, null, null, static::getTimeout()); } - } catch (\Exception $e) { - call_user_func($job['reject'], $e); - - return; } catch (\Throwable $e) { call_user_func($job['reject'], $e); @@ -269,10 +265,6 @@ class ProcessExecutor try { $process->start(); - } catch (\Exception $e) { - call_user_func($job['reject'], $e); - - return; } catch (\Throwable $e) { call_user_func($job['reject'], $e); diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index f35964975..8fd7fc613 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -573,7 +573,6 @@ class RemoteFilesystem // passing `null` to file_get_contents will convert `null` to `0` and return 0 bytes $result = file_get_contents($fileUrl, false, $context); } - } catch (\Exception $e) { } catch (\Throwable $e) { }