From a755fd6c23d5038d8e070931854bd7169f993766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alu=C3=ADsio=20Pires?= <88967089+aluisio-pires@users.noreply.github.com> Date: Mon, 9 Jun 2025 16:16:34 +0200 Subject: [PATCH] [12.x] Fix: Add void return type to withMiddleware and withExceptions to satisfy Rector analysis (#6628) --- bootstrap/app.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index acf0933d0..34a6bb8b0 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -14,7 +14,7 @@ return Application::configure(basePath: dirname(__DIR__)) commands: __DIR__.'/../routes/console.php', health: '/up', ) - ->withMiddleware(function (Middleware $middleware) { + ->withMiddleware(function (Middleware $middleware): void { $middleware->encryptCookies(except: ['appearance', 'sidebar_state']); $middleware->web(append: [ @@ -23,6 +23,6 @@ return Application::configure(basePath: dirname(__DIR__)) AddLinkHeadersForPreloadedAssets::class, ]); }) - ->withExceptions(function (Exceptions $exceptions) { + ->withExceptions(function (Exceptions $exceptions): void { // })->create();