Skip to content

Commit

Permalink
shortened the function in index.php
Browse files Browse the repository at this point in the history
tiny refactoring of index.php
  • Loading branch information
okorneliuk authored Jan 22, 2024
1 parent 6a2fe8f commit bac0c3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

require_once dirname(__DIR__).'/vendor/autoload_runtime.php';

return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
return fn (array $context) => new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);

0 comments on commit bac0c3d

Please sign in to comment.