From e5e9cd91b0f5c0fe669d3a69cd6d1bd25c83af5f Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Wed, 25 Sep 2024 13:39:40 +0100 Subject: [PATCH] Use $_ENV instead of getenv --- src/dependencies.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dependencies.php b/src/dependencies.php index 4950c53..060de1a 100644 --- a/src/dependencies.php +++ b/src/dependencies.php @@ -50,7 +50,7 @@ $container->set(EntityManager::class, static function() { $connection = DriverManager::getConnection([ 'driver' => 'pdo_sqlite', - 'path' => __DIR__ . '/../' . getenv("SQLITE_DB_NAME"), + 'path' => __DIR__ . '/../' . $_ENV["SQLITE_DB_NAME"], ], $config); $connection->executeQuery("PRAGMA foreign_keys = ON");