diff --git a/lib/versioncheck.php b/lib/versioncheck.php
index 43539468e3b..9e33f584a9a 100644
--- a/lib/versioncheck.php
+++ b/lib/versioncheck.php
@@ -13,10 +13,10 @@ if (PHP_VERSION_ID < 80100) {
exit(1);
}
-// Show warning if >= PHP 8.4 is used as Nextcloud is not compatible with >= PHP 8.4 for now
-if (PHP_VERSION_ID >= 80400) {
+// Show warning if >= PHP 8.5 is used as Nextcloud is not compatible with >= PHP 8.5 for now
+if (PHP_VERSION_ID >= 80500) {
http_response_code(500);
- echo 'This version of Nextcloud is not compatible with PHP>=8.4.
';
+ echo 'This version of Nextcloud is not compatible with PHP>=8.5.
';
echo 'You are currently running ' . PHP_VERSION . '.';
exit(1);
}