Skip to content

No catch Throwable errors #46596

Closed
Closed
@EdmondDantes

Description

@EdmondDantes

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions