diff --git a/src/DotEnv.php b/src/DotEnv.php index a75dd71..9a02ec0 100644 --- a/src/DotEnv.php +++ b/src/DotEnv.php @@ -94,6 +94,10 @@ class DotEnv // strip ending " and EVERYTHING that follows after that $line = $matches[1]; } + // just be sure it is init before we fill + if (!isset($_ENV[$var])) { + $_ENV[$var] = ''; + } // strip line of slashes $_ENV[$var] .= stripslashes($line); }