Skip to content

Commit 4c17294

Browse files
committed
changed getenv references to _ENV
1 parent 1cef17c commit 4c17294

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/_bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$dotenv->load();
2222

2323
echo "ENV: " . APPLICATION_ENV . PHP_EOL;
24-
echo "DB_HOST: " . getenv('DB_HOST') . ":" . getenv('DB_PORT') . PHP_EOL;
24+
echo "DB_HOST: " . $_ENV['DB_HOST'] . ":" . $_ENV['DB_PORT'] . PHP_EOL;
2525

2626

2727
Autoload::addNamespace(

tests/_data/bootstrap.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ function () {
3131
function () {
3232
return new Mysql(
3333
[
34-
'host' => getenv('DB_HOST'),
35-
'port' => getenv('DB_PORT'),
36-
'username' => getenv('DB_USERNAME'),
37-
'password' => getenv('DB_PASSWORD'),
38-
'dbname' => getenv('DB_NAME'),
34+
'host' => $_ENV['DB_HOST'] ?? '127.0.0.1',
35+
'port' => $_ENV['DB_PORT'] ?? 3306,
36+
'username' => $_ENV['DB_USERNAME'] ?? 'phalcon',
37+
'password' => $_ENV['DB_PASSWORD'] ?? '',
38+
'dbname' => $_ENV['DB_NAME'] ?? 'phalcon',
3939
]
4040
);
4141
}

0 commit comments

Comments
 (0)