Skip to content

Commit 847f9e4

Browse files
committed
FIX bad env name
1 parent 7fcb8ac commit 847f9e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ConnectParams.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static function fromEnv(string $alias)
4242
{
4343
$alias = strtoupper($alias);
4444

45-
$driverKey = "DATABASE_{$alias}_HOST";
45+
$driverKey = "DATABASE_{$alias}_DRIVER";
4646
$driverVal = static::getenv($driverKey);
4747
if (empty($driverVal)) {
4848
throw new LogicException("Missing environment variable {$driverKey}.");

0 commit comments

Comments
 (0)