PHP Version Error
When upgrading or doing other command line related tasks, Nextcloud could give you a PHP Version Error. This doesn't matter what version you are on and is for all PHP version errors.
So to get rid of this error and continuing your tasks do the following.
Go into your Nextcloud directory and than in the LIB directory within your Nextcloud directory:
cd /var/www/nextcloud/lib
Find the file versioncheck.php and open it
nano versioncheck.php
Delete everything in the file except this:
<?php declare(strict_types=1);
Save the file and go on with your tasks, it should have been solved.
NOTE: There is a change that you get a integrity warning in your Dashboard. After you have done your tasks you can restore the file again. Copy the original content of the file back or download it from Nextcloud en extract the file.
Enjoy,
Your ArtIT Team