Skip to content

Commit 86434f8

Browse files
authored
Allow a variable to be set an empty value. Fix for #1
1 parent be51ce0 commit 86434f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/EnvironmentSetCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ protected function getKeyValue(): array
108108
$parts = explode('=', $key, 2);
109109

110110
if (count($parts) !== 2) {
111-
throw new InvalidArgumentException('No value was set');
111+
$key = $parts[0];
112+
} else {
113+
$key = $parts[0];
114+
$value = $parts[1];
112115
}
113-
114-
$key = $parts[0];
115-
$value = $parts[1];
116116
}
117117

118118
if (! $this->isValidKey($key)) {

0 commit comments

Comments
 (0)