mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
[12.x] Fix: Add void return type to withMiddleware and withExceptions to satisfy Rector analysis (#6628)
This commit is contained in:
parent
cbd1a9706d
commit
a755fd6c23
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue