diff --git a/src/Composer/Command/RemoveCommand.php b/src/Composer/Command/RemoveCommand.php index 8821bd991..591548d2a 100644 --- a/src/Composer/Command/RemoveCommand.php +++ b/src/Composer/Command/RemoveCommand.php @@ -74,9 +74,8 @@ EOT $json->removeLink($type, $package); } elseif (isset($composer[$altType][$package])) { $this->getIO()->writeError(''.$package.' could not be found in '.$type.' but it is present in '.$altType.''); - $dialog = $this->getHelperSet()->get('dialog'); if ($this->getIO()->isInteractive()) { - if ($dialog->askConfirmation($output, $dialog->getQuestion('Do you want to remove it from '.$altType, 'yes', '?'), true)) { + if ($this->getIO()->askConfirmation('Do you want to remove it from '.$altType.' [yes]?', true)) { $json->removeLink($altType, $package); } }