From cfd67fd18bb84760b6c5651acc22885e3e8b8196 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 10 Sep 2020 11:50:42 +0200 Subject: [PATCH] Allow to also use PHP 8.0 Signed-off-by: Morris Jobke --- lib/versioncheck.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/versioncheck.php b/lib/versioncheck.php index 2f761ba6e3..89a43790cf 100644 --- a/lib/versioncheck.php +++ b/lib/versioncheck.php @@ -30,10 +30,10 @@ if (PHP_VERSION_ID < 70300) { exit(-1); } -// Show warning if > PHP 7.4 is used as Nextcloud is not compatible with > PHP 7.4 for now -if (PHP_VERSION_ID >= 70500) { +// Show warning if > PHP 8.0 is used as Nextcloud is not compatible with > PHP 8.0 for now +if (PHP_VERSION_ID >= 80100) { http_response_code(500); - echo 'This version of Nextcloud is not compatible with > PHP 7.4.
'; + echo 'This version of Nextcloud is not compatible with > PHP 8.0.
'; echo 'You are currently running ' . PHP_VERSION . '.'; exit(-1); }