See an Uncaught TypeError with the command line updater

When trying to run the command line updater with /usr/local/bin/php public_html/cloud/updater/updater.phar, I receive an error:

Nextcloud Updater - version: v25.0.0beta3-17-gef6cf2d

PHP Fatal error:  Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, null given in phar://.../public_html/cloud/updater/updater.phar/lib/Updater.php:1150
Stack trace:
#0 phar://.../public_html/cloud/updater/updater.phar/lib/Updater.php(1150): fclose()
#1 phar://.../public_html/cloud/updater/updater.phar/lib/Updater.php(1161): NC\Updater\Updater->log()
#2 phar://.../public_html/cloud/updater/updater.phar/lib/Updater.php(1055): NC\Updater\Updater->silentLog()
#3 phar://.../public_html/cloud/updater/updater.phar/lib/UpdateCommand.php(126): NC\Updater\Updater->currentStep()
#4 phar://.../public_html/cloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(255): NC\Updater\UpdateCommand->execute()
#5 phar://.../public_html/cloud/updater/updater.phar/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#6 phar://.../public_html/cloud/updater/updater.phar/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#7 phar://.../public_html/cloud/updater/updater.phar/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#8 phar://.../public_html/cloud/updater/updater.phar/updater.php(10): Symfony\Component\Console\Application->run()
#9 .../public_html/cloud/updater/updater.phar(14): require('phar:///home/...')
#10 {main}
  thrown in phar://.../public_html/cloud/updater/updater.phar/lib/Updater.php on line 1150

There are no other relevant entries in the Nextcloud log.

Nextcloud version: 25.0.1
Operating system and version: Linux 3.10.0-962.3.2.lve1.5.66.el7.x86_64
Apache or nginx version: Apache
PHP version: 8.1.12

This is on a shared host provider, A2 Hosting. Falling back to php 7.4 on this host allows updates to work, albeit with other challenges from the now deprecated php version. Attempting the update with php 8.0 or 8.1 yields the error above.

I’m not sure what else to troubleshoot.