From 2f083e258baa6982221a66ce1ab548d295c5297b Mon Sep 17 00:00:00 2001 From: Maicol Battistini Date: Mon, 26 Jun 2023 10:12:38 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Permetti=20risposte=20che?= =?UTF-8?q?=20estendono=20`SymfonyResponse`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Middleware/CheckConfigurationMiddleware.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Middleware/CheckConfigurationMiddleware.php b/app/Http/Middleware/CheckConfigurationMiddleware.php index ca45b8c49..33a921764 100644 --- a/app/Http/Middleware/CheckConfigurationMiddleware.php +++ b/app/Http/Middleware/CheckConfigurationMiddleware.php @@ -5,18 +5,17 @@ namespace App\Http\Middleware; use App\Models\User; use Closure; use Illuminate\Database\QueryException; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\DB; use InvalidArgumentException; use PDO; use PDOException; +use Symfony\Component\HttpFoundation\Response as SymfonyResponse; class CheckConfigurationMiddleware { - public function handle(Request $request, Closure $next): Response|RedirectResponse|JsonResponse + public function handle(Request $request, Closure $next): Response|SymfonyResponse { $checks = [ 'database' => static fn (): bool => !empty(DB::connection()->getDatabaseName()) && DB::connection()->getPdo() instanceof PDO,