Merge branch 'main' into lance/phpstan-return-types

This commit is contained in:
Lance Pioch
2024-10-20 11:39:04 -04:00
committed by GitHub
26 changed files with 130 additions and 67 deletions

View File

@@ -64,6 +64,7 @@ class DisplayException extends PanelException implements HttpExceptionInterface
return response()->json(Handler::toArray($this), $this->getStatusCode(), $this->getHeaders());
}
// @phpstan-ignore-next-line
app(AlertsMessageBag::class)->danger($this->getMessage())->flash();
return redirect()->back()->withInput();

View File

@@ -273,6 +273,7 @@ class Handler extends ExceptionHandler
*/
public static function toArray(\Throwable $e): array
{
// @phpstan-ignore-next-line
return (new self(app()))->convertExceptionToArray($e);
}
}