Skip to content

Commit

Permalink
Make closure static
Browse files Browse the repository at this point in the history
  • Loading branch information
nbayramberdiyev committed Mar 3, 2024
1 parent 62e3455 commit 096c6bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bootstrap/middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Slim\Views\Twig;
use Slim\Views\TwigMiddleware;

return function (Slim\App $app): void {
return static function (Slim\App $app): void {
$app->addBodyParsingMiddleware();

$app->addRoutingMiddleware();
Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use App\Controllers\ContactController;
use App\Controllers\HomeController;

return function (Slim\App $app): void {
return static function (Slim\App $app): void {
$app->get('/', [HomeController::class, 'index'])->setName('home.index');
$app->get('/about', [AboutController::class, 'index'])->setName('about.index');
$app->get('/contact', [ContactController::class, 'index'])->setName('contact.index');
Expand Down

0 comments on commit 096c6bb

Please sign in to comment.