From 26ea0b697c18b0653e71795e7858801dbb25a242 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 11:16:34 -0300 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 7b162dac..c1832766 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -10,9 +10,9 @@ return Application::configure(basePath: dirname(__DIR__)) commands: __DIR__.'/../routes/console.php', health: '/up', ) - ->withMiddleware(function (Middleware $middleware) { + ->withMiddleware(function (Middleware $middleware): void { // }) - ->withExceptions(function (Exceptions $exceptions) { + ->withExceptions(function (Exceptions $exceptions): void { // })->create();