From cad5dc5b8baa770cfce0990e340e539e34cdec90 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 518ca592e..00cac75e0 100644 --- a/src/Composer/Command/SelfUpdateCommand.php +++ b/src/Composer/Command/SelfUpdateCommand.php @@ -596,7 +596,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;