Skip to content

Commit 33fb5a2

Browse files
committed
Fix new errors
1 parent a6ddf25 commit 33fb5a2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

public/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
66

77
return function (array $context) {
8+
/** @var array{APP_ENV: string, APP_DEBUG: bool} $context */
89
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
910
};

tests/bootstrap.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
require dirname(__DIR__) . '/vendor/autoload.php';
66

7-
if (method_exists(Dotenv::class, 'bootEnv')) {
8-
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
9-
}
7+
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
108

119
if ($_SERVER['APP_DEBUG']) {
1210
umask(0000);

0 commit comments

Comments
 (0)