-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[4.4] Fix some leftovers #33752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.4] Fix some leftovers #33752
Conversation
@@ -96,7 +96,7 @@ | |||
<argument type="collection"> | |||
<argument type="service" key="cli"> | |||
<service class="Symfony\Component\VarDumper\Command\Descriptor\CliDescriptor"> | |||
<argument type="service" id="var_dumper.cli_dumper" /> | |||
<argument type="service" id="var_dumper.contextualized_cli_dumper.inner" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @ktherage FYI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolas-grekas Sorry, i've missed this one.
@@ -126,6 +126,10 @@ public function configure(Event $event = null) | |||
$output = $output->getErrorOutput(); | |||
} | |||
$this->exceptionHandler = function ($e) use ($app, $output) { | |||
if (!$e instanceof \Exception) { | |||
$e = new FatalThrowableError($e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @fancyweb FYI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Might sounds useless but the function could be static + type hinted \Throwable $e
to be consistent with what I did in #33038.
d39759c
to
b416c12
Compare
This PR was merged into the 4.4 branch. Discussion ---------- [4.4] Fix some leftovers | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | #33756 | License | MIT | Doc PR | - Found while running console commands with the Symfony Demo. Commits ------- b416c12 [4.4] Fix some leftovers
Found while running console commands with the Symfony Demo.