Skip to content

Commit 63fe2fa

Browse files
authored
Only explode to a max of 2 values
1 parent f168201 commit 63fe2fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EnvironmentSetCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function handle(): void
5959
if ($isNewVariableSet) {
6060
$this->info("A new environment variable with key '{$key}' has been set to '{$value}'");
6161
} else {
62-
[$_, $oldValue] = explode('=', $this->readKeyValuePair($content, $key));
62+
[$_, $oldValue] = explode('=', $this->readKeyValuePair($content, $key), 2);
6363
$this->info("Environment variable with key '{$key}' has been changed from '{$oldValue}' to '{$value}'");
6464
}
6565

0 commit comments

Comments
 (0)