1
0
Fork 0

Fix TypeError in ConfigCommand (#10753)

* Fix TypeError in ConfigCommand

* Update ConfigCommand.php
pull/10756/head
Markus Staab 2022-04-27 21:10:06 +02:00 committed by GitHub
parent f728b0b007
commit c36a9350bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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();