Skip to content

Commit 52b27cc

Browse files
committedNov 29, 2024·
Avoid defining global variables
1 parent c420bd0 commit 52b27cc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎formwork/bootstrap.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
}
88

99
// Check if Composer autoloader is available
10-
if (file_exists($autoload = ROOT_PATH . '/vendor/autoload.php')) {
11-
require $autoload;
10+
if (file_exists(ROOT_PATH . '/vendor/autoload.php')) {
11+
require ROOT_PATH . '/vendor/autoload.php';
1212
} else {
1313
require __DIR__ . '/views/errors/install.php';
1414
exit;

‎index.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77

88
require SYSTEM_PATH . '/bootstrap.php';
99

10-
$formwork = new App();
11-
$formwork->run();
10+
(new App())->run();

0 commit comments

Comments
 (0)
Please sign in to comment.