[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 16:16:34 +02:00 committed by Yury Pikhtarev
commit a755fd6c23
No known key found for this signature in database

View file

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