]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow minor release of PHP 8.1 to be used as well
authorCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 2 Dec 2021 15:31:19 +0000 (16:31 +0100)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 16 Dec 2021 08:43:31 +0000 (09:43 +0100)
No reason to allow 8.1.0 and not 8.1.1.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
lib/versioncheck.php

index 8aa68dd35fdd0979a023c00ea0c2990b9797d707..3e840ff5b461bd9f0611e3215c6c695d448c5803 100644 (file)
@@ -33,10 +33,10 @@ if (PHP_VERSION_ID < 70300) {
        exit(1);
 }
 
-// Show warning if > PHP 8.1 is used as Nextcloud is not compatible with > PHP 8.1 for now
-if (PHP_VERSION_ID > 80100) {
+// Show warning if >= PHP 8.2 is used as Nextcloud is not compatible with >= PHP 8.2 for now
+if (PHP_VERSION_ID >= 80200) {
        http_response_code(500);
-       echo 'This version of Nextcloud is not compatible with > PHP 8.1.<br/>';
+       echo 'This version of Nextcloud is not compatible with PHP>=8.2.<br/>';
        echo 'You are currently running ' . PHP_VERSION . '.';
        exit(1);
 }