Skip to content

Commit dd17003

Browse files
Merge remote-tracking branch 'pr-set-empty-values/set-empty-values'
2 parents ebfab39 + 86434f8 commit dd17003

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
@@ -109,11 +109,11 @@ protected function getKeyValue(): array
109109
$parts = explode('=', $key, 2);
110110

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

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

0 commit comments

Comments
 (0)