public/index.php line 15

Open in your IDE?
  1. <?php
  2. use App\Kernel;
  3. if (\PHP_VERSION_ID >= 80300) {
  4.     set_error_handler(static function (int $typestring $message): bool {
  5.         if ((\E_DEPRECATED $type) && str_contains($message'assert.') && str_contains($message'INI setting is deprecated')) {
  6.             return true;
  7.         }
  8.         return false;
  9.     });
  10. }
  11. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  12. return function (array $context) {
  13.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  14. };