diff --git a/src/MySQLReplication/Tools.php b/src/MySQLReplication/Tools.php index 19425f1..f64db8e 100644 --- a/src/MySQLReplication/Tools.php +++ b/src/MySQLReplication/Tools.php @@ -8,7 +8,7 @@ class Tools { public static function getFromEnv(string $name, null|int|string $default = null): null|int|string { - $value = $_ENV[$name] ?: null; + $value = getenv($name) ?: null; return $value ?? $default; } }