Skip to content

Commit

Permalink
Allow minor release of PHP 8.1 to be used as well
Browse files Browse the repository at this point in the history
No reason to allow 8.1.0 and not 8.1.1.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Dec 16, 2021
1 parent 4f7b9cc commit 72baee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/versioncheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
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);
}

0 comments on commit 72baee9

Please sign in to comment.