8000 [Console] The application also catch `\Throwable` exceptions · symfony/symfony@aeac386 · GitHub
[go: up one dir, main page]

Skip to content

Commit aeac386

Browse files
committed
[Console] The application also catch \Throwable exceptions
1 parent bd57368 commit aeac386

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function run(InputInterface $input = null, OutputInterface $output = null
172172

173173
try {
174174
$exitCode = $this->doRun($input, $output);
175-
} catch (\Exception $e) {
175+
} catch (\Throwable $e) {
176176
if (!$this->catchExceptions) {
177177
throw $e;
178178
}

src/Symfony/Component/Console/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.4
5+
---
6+
7+
* The application also catch `\Throwable` exceptions
8+
49
6.3
510
---
611

0 commit comments

Comments
 (0)
0