diff --git a/src/Composer/Command/SelfUpdateCommand.php b/src/Composer/Command/SelfUpdateCommand.php index 354824881..91fd10b68 100644 --- a/src/Composer/Command/SelfUpdateCommand.php +++ b/src/Composer/Command/SelfUpdateCommand.php @@ -107,7 +107,7 @@ EOT // remove all backups except for the most recent, if any if ($input->getOption('clean-backups')) { - $this->cleanBackups($rollbackDir, $this->getLastBackupVersion()); + $this->cleanBackups($rollbackDir, $this->getLastBackupVersion($rollbackDir)); } return 0;