Allow minor release of PHP 8.1 to be used as well

No reason to allow 8.1.0 and not 8.1.1.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/29862/head
Côme Chilliet 3 years ago
parent 4f7b9cc6b2
commit 72baee9698
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A

@ -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);
}

Loading…
Cancel
Save