From 9369b67df3888ae0b30dda47f5211843f42c6514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 7 Nov 2022 10:50:03 +0100 Subject: [PATCH] Drop PHP 7.4 support for master (26) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- composer.json | 3 ++- lib/versioncheck.php | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 6a8e9e99569..2bd3a122cf4 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "optimize-autoloader": true, "sort-packages": true, "platform": { - "php": "7.4" + "php": "8.0" }, "allow-plugins": { "bamarni/composer-bin-plugin": true @@ -22,6 +22,7 @@ } }, "require": { + "php": "^8.0", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", diff --git a/lib/versioncheck.php b/lib/versioncheck.php index 8477442935a..7c95b333102 100644 --- a/lib/versioncheck.php +++ b/lib/versioncheck.php @@ -25,10 +25,10 @@ declare(strict_types=1); * along with this program. If not, see . * */ -// Show warning if a PHP version below 7.4 is used, -if (PHP_VERSION_ID < 70400) { +// Show warning if a PHP version below 8.0 is used, +if (PHP_VERSION_ID < 80000) { http_response_code(500); - echo 'This version of Nextcloud requires at least PHP 7.4
'; + echo 'This version of Nextcloud requires at least PHP 8.0
'; echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; exit(1); }