Skip to content

Commit ce475fe

Browse files
committed
bug-fixed $event->getThrowable
1 parent 816afbe commit ce475fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventListener/JsonExceptionResponseListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function onKernelException(ExceptionEvent $event): void
4545
return;
4646
}
4747

48-
$exception = $event->getException();
48+
$exception = $event->getThrowable();
4949

5050
if (method_exists($exception, 'getStatusCode')) {
5151
$code = $this->getCode($exception->getStatusCode());

0 commit comments

Comments
 (0)