Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
exit(1);
}
-// Show warning if > PHP 8.0 is used as Nextcloud is not compatible with > PHP 8.0 for now
-if (PHP_VERSION_ID >= 80100) {
+// Show warning if > PHP 8.1 is used as Nextcloud is not compatible with > PHP 8.1 for now
+if (PHP_VERSION_ID > 80100) {
http_response_code(500);
- echo 'This version of Nextcloud is not compatible with > PHP 8.0.<br/>';
+ echo 'This version of Nextcloud is not compatible with > PHP 8.1.<br/>';
echo 'You are currently running ' . PHP_VERSION . '.';
exit(1);
}