Skip to content

Commit f41f166

Browse files
committed
Allow to also use PHP 8.0
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
1 parent 5eca240 commit f41f166

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/versioncheck.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
exit(-1);
3131
}
3232

33-
// Show warning if > PHP 7.4 is used as Nextcloud is not compatible with > PHP 7.4 for now
34-
if (PHP_VERSION_ID >= 70500) {
33+
// Show warning if > PHP 8.0 is used as Nextcloud is not compatible with > PHP 8.0 for now
34+
if (PHP_VERSION_ID >= 80100) {
3535
http_response_code(500);
36-
echo 'This version of Nextcloud is not compatible with > PHP 7.4.<br/>';
36+
echo 'This version of Nextcloud is not compatible with > PHP 8.0.<br/>';
3737
echo 'You are currently running ' . PHP_VERSION . '.';
3838
exit(-1);
3939
}

0 commit comments

Comments
 (0)