diff --git a/src/Composer/Command/SelfUpdateCommand.php b/src/Composer/Command/SelfUpdateCommand.php index 45db77e52..26d9f7546 100644 --- a/src/Composer/Command/SelfUpdateCommand.php +++ b/src/Composer/Command/SelfUpdateCommand.php @@ -156,6 +156,10 @@ EOT return $this->rollback($output, $rollbackDir, $localFilename); } + if ($input->getArgument('command') === 'self' && $input->getArgument('version') === 'update') { + $input->setArgument('version', null); + } + $latest = $versionsUtil->getLatest(); $latestStable = $versionsUtil->getLatest('stable'); try {