diff --git a/Dotenv.php b/Dotenv.php index 622dc13042b136a4ad6cb15a780109b28869aa3e..f7153683e58896c9e2f454efad4a21d671f2055d 100644 --- a/Dotenv.php +++ b/Dotenv.php @@ -99,7 +99,7 @@ final class Dotenv { if (!empty($prompt) && $this->io->isInteractive()) { $value = $this->io->ask($prompt . ': '); } - if ($value === FALSE) { + if ($value === FALSE || $value === NULL) { $value = $default; } $this->put($key, $value, TRUE);