From e823f24940fb28d89332848fb8017b75a84c1765 Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Sat, 20 Aug 2022 01:41:14 -0400 Subject: [PATCH] Match default choice to actual default (#11010) The 'Y' is capital, so Yes should be the default choice and is what most people would want, but No was the default. --- src/Composer/Command/SelfUpdateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/SelfUpdateCommand.php b/src/Composer/Command/SelfUpdateCommand.php index 68f3c2c0b..c2316a075 100644 --- a/src/Composer/Command/SelfUpdateCommand.php +++ b/src/Composer/Command/SelfUpdateCommand.php @@ -600,7 +600,7 @@ TAGSPUBKEY $helpMessage = 'Please run the self-update command as an Administrator.'; $question = 'Complete this operation with Administrator privileges [Y,n]? '; - if (!$io->askConfirmation($question, false)) { + if (!$io->askConfirmation($question, true)) { $io->writeError('Operation cancelled. '.$helpMessage.''); return false;