Fix TypeError in ConfigCommand (#10753)
* Fix TypeError in ConfigCommand * Update ConfigCommand.phppull/10756/head
parent
f728b0b007
commit
c36a9350bd
|
@ -214,7 +214,7 @@ EOT
|
|||
{
|
||||
// Open file in editor
|
||||
if (true === $input->getOption('editor')) {
|
||||
$editor = escapeshellcmd(Platform::getEnv('EDITOR'));
|
||||
$editor = Platform::getEnv('EDITOR');
|
||||
if (!$editor) {
|
||||
if (Platform::isWindows()) {
|
||||
$editor = 'notepad';
|
||||
|
@ -226,6 +226,8 @@ EOT
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$editor = escapeshellcmd($editor);
|
||||
}
|
||||
|
||||
$file = $input->getOption('auth') ? $this->authConfigFile->getPath() : $this->configFile->getPath();
|
||||
|
|
Loading…
Reference in New Issue