Fehler beim Upgrade auf 6.4.1.2

Wir hatten ein ähnliches Problem von 6.4.4.1 auf 6.4.5.1 (siehe auch mein Kommentar unter Update auf 6.4.1.1: Uncaught ArgumentCountError bei Cleanup)

Problem konnte nur mit Verwendung von PHP7.4 gelöst werden. Mit PHP8 hatten wir jedes Mal den Fehler:

Replace system files...
skipped...
Apply database migrations...
    0 [----->----------------------]
Apply database destructive migrations...
    0 [----->----------------------]
Cleanup old files, clearing caches...
PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Shopware\Recovery\Update\Console\Application::Shopware\Recovery\Update\Console\{closure}(), 4 passed and exactly 5 expected in [sw-root]/vendor/shopware/recovery/Update/src/Console/Application.php:86
Stack trace:
#0 [internal function]: Shopware\Recovery\Update\Console\Application->Shopware\Recovery\Update\Console\{closure}()
#1 [sw-root]/vendor/shopware/recovery/Update/src/Cleanup.php(171): rmdir()
#2 [sw-root]/vendor/shopware/recovery/Update/src/Cleanup.php(67): Shopware\Recovery\Update\Cleanup->deleteTemporaryBackupDirectory()
#3 [sw-root]/vendor/shopware/recovery/Update/src/Command/UpdateCommand.php(184): Shopware\Recovery\Update\Cleanup->cleanup()
#4 [sw-root]/vendor/shopware/recovery/Update/src/Command/UpdateCommand.php(171): Shopware\Recovery\Update\Command\UpdateCommand->cleanupFiles()
#5 [sw-root]/vendor/shopware/recovery/Update/src/Command/UpdateCommand.php(77): Shopware\Recovery\Update\Command\UpdateCommand->cleanup()
#6 [sw-root]/vendor/shopware/recovery/Common/vendor/symfony/console/Command/Command.php(256): Shopware\Recovery\Update\Command\UpdateCommand->execute()
#7 [sw-root]/vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(971): Symfony\Component\Console\Command\Command->run()
#8 [sw-root]/vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(290): Symfony\Component\Console\Application->doRunCommand()
#9 [sw-root]/vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(166): Symfony\Component\Console\Application->doRun()
#10 [sw-root]/vendor/shopware/recovery/Update/index.php(36): Symfony\Component\Console\Application->run()
#11 [sw-root]/public/recovery/update/index.php(6): require_once('...')
#12 {main}
  thrown in [sw-root]/vendor/shopware/recovery/Update/src/Console/Application.php on line 86