We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 816afbe commit ce475feCopy full SHA for ce475fe
EventListener/JsonExceptionResponseListener.php
@@ -45,7 +45,7 @@ public function onKernelException(ExceptionEvent $event): void
45
return;
46
}
47
48
- $exception = $event->getException();
+ $exception = $event->getThrowable();
49
50
if (method_exists($exception, 'getStatusCode')) {
51
$code = $this->getCode($exception->getStatusCode());
0 commit comments