8000 minor #25008 [Console] Remove remaining dead code (chalasr) · dunglas/symfony@9447016 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9447016

Browse files
committed
minor symfony#25008 [Console] Remove remaining dead code (chalasr)
This PR was merged into the 2.7 branch. Discussion ---------- [Console] Remove remaining dead code | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Since they are always re-thrown, no need to catch `\Error` instances at all. Commits ------- 3822c07 [Console] Remove remaining dead code
2 parents c247717 + 3822c07 commit 9447016

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,10 @@ public function run(InputInterface $input = null, OutputInterface $output = null
113113
$e = null;
114114
$exitCode = $this->doRun($input, $output);
115115
} catch (\Exception $e) {
116-
} catch (\Throwable $e) {
117116
}
118117

119118
if (null !== $e) {
120-
if (!$this->catchExceptions || !$e instanceof \Exception) {
119+
if (!$this->catchExceptions) {
121120
throw $e;
122121
}
123122

0 commit comments

Comments
 (0)
0