fixed 500 exception missing class issue ;

Symfony's Debug component, which included the FatalThrowableError class, was deprecated and removed in favor of Symfony's newer error handling mechanisms starting with Symfony 5.0. The Debug component itself has been replaced by the ErrorHandler component.
This commit is contained in:
Cüneyt Şentürk 2024-09-24 13:42:39 +01:00
parent 696302945c
commit d39a8d6716
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ use Illuminate\Http\Response;
use Illuminate\Support\Str;
use Illuminate\Validation\ValidationException;
use Illuminate\View\ViewException;
use Symfony\Component\Debug\Exception\FatalThrowableError;
use Symfony\Component\ErrorHandler\Error\FatalError;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Mailer\Exception\HttpTransportException as MailerHttpTransportException;
@ -167,7 +167,7 @@ class Handler extends ExceptionHandler
}
}
if ($exception instanceof FatalThrowableError) {
if ($exception instanceof FatalError) {
// ajax 500 json feedback
if ($request->ajax()) {
return response()->json([