]> source.dussan.org Git - nextcloud-server.git/commitdiff
Drop PHP 7.4 support for master (26)
authorCôme Chilliet <come.chilliet@nextcloud.com>
Mon, 7 Nov 2022 09:50:03 +0000 (10:50 +0100)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Fri, 20 Jan 2023 10:22:07 +0000 (11:22 +0100)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
composer.json
lib/versioncheck.php

index 6a8e9e9956967e152e8132ebaeee339328d049bd..2bd3a122cf4cd19bae0245675bc7713be960184a 100644 (file)
@@ -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": "*",
index 8477442935a8777005caaccf654a30d49023fe62..7c95b33310244a7cfdc044e518c90d1f5a1b9507 100644 (file)
@@ -25,10 +25,10 @@ declare(strict_types=1);
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  *
  */
-// 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<br/>';
+       echo 'This version of Nextcloud requires at least PHP 8.0<br/>';
        echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
        exit(1);
 }