[12.x] Fix: Add void return type to withMiddleware and withExceptions to satisfy Rector analysis (#6628)

This commit is contained in:
Aluísio Pires
2025-06-09 11:16:34 -03:00
committed by GitHub
parent 2f8a5bf10d
commit 26ea0b697c

View File

@@ -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();