File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Exception/EventSubscriber Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,14 +100,14 @@ public function onKernelException(ExceptionEvent $event): void
100
100
}
101
101
}
102
102
103
- private function buildError (\Exception $ exception ): Error
103
+ private function buildError (\Throwable $ exception ): Error
104
104
{
105
105
if (class_exists ('\Symfony\Component\ErrorHandler\Exception\FlattenException ' )) {
106
106
/** @var callable $callable */
107
- $ callable = ['Symfony\Component\ErrorHandler\Exception\FlattenException ' , 'create ' ];
107
+ $ callable = ['Symfony\Component\ErrorHandler\Exception\FlattenException ' , 'createFromThrowable ' ];
108
108
$ e = \call_user_func ($ callable , $ exception );
109
109
} else {
110
- $ e = FlattenException::create ($ exception );
110
+ $ e = FlattenException::createFromThrowable ($ exception );
111
111
}
112
112
113
113
return new Error (
You can’t perform that action at this time.
0 commit comments