Closed
Description
Symfony version(s) affected
6.0
Description
$exitCode = $this->doRun($input, $output);
} catch (\Exception $e) {
if (!$this->catchExceptions) {
throw $e;
}
Current code: https://github.com/symfony/console/blob/c9646197ef43b0e2ff44af61e7f0571526fd4170/Application.php#L172
Command exception handler skips type errors Throwable
How to reproduce
Raise an exception that throws an exception not of type Exception
Possible Solution
Change type to Throwable
Additional Context
No response