From f4d7a7ba1b429744b8169858389f53dce3c00d5d Mon Sep 17 00:00:00 2001
From: Christian Kuhn <lolli@schwarzbu.ch>
Date: Sun, 28 Feb 2021 13:25:39 +0100
Subject: [PATCH] [TASK] Declare PHP 8 compatibility

composer req php:"^7.4 || ^8.0"

Note this declares core master PHP 8 compatibility,
even though core is not yet compatible in practice.
The situation should settle until 11.2, though.

Resolves: #93612
Releases: master
Change-Id: Ibd428260ebd48936bb193b1df747283d3b35f410
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68150
Tested-by: Simon Gilli <typo3@gilbertsoft.org>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Richard Haeser <richard@richardhaeser.com>
Reviewed-by: Simon Gilli <typo3@gilbertsoft.org>
Reviewed-by: Richard Haeser <richard@richardhaeser.com>
---
 composer.json                   | 2 +-
 composer.lock                   | 4 ++--
 typo3/sysext/core/composer.json | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/composer.json b/composer.json
index be72c27cd12e..fc3e0fdcb20a 100644
--- a/composer.json
+++ b/composer.json
@@ -31,7 +31,7 @@
 		"sort-packages": true
 	},
 	"require": {
-		"php": "^7.4",
+		"php": "^7.4 || ^8.0",
 		"ext-PDO": "*",
 		"ext-json": "*",
 		"ext-libxml": "*",
diff --git a/composer.lock b/composer.lock
index 46a89099032b..c97526029e4c 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "9f6485b5f457a44d5af9510ce5b7befc",
+    "content-hash": "08adaa4ad79e6abee93486ffe7ae1f37",
     "packages": [
         {
             "name": "bacon/bacon-qr-code",
@@ -7613,7 +7613,7 @@
     "prefer-stable": false,
     "prefer-lowest": false,
     "platform": {
-        "php": "^7.4",
+        "php": "^7.4 || ^8.0",
         "ext-pdo": "*",
         "ext-json": "*",
         "ext-libxml": "*",
diff --git a/typo3/sysext/core/composer.json b/typo3/sysext/core/composer.json
index b413e185005c..bd94d969d1e2 100644
--- a/typo3/sysext/core/composer.json
+++ b/typo3/sysext/core/composer.json
@@ -19,7 +19,7 @@
 		"sort-packages": true
 	},
 	"require": {
-		"php": "^7.4",
+		"php": "^7.4 || ^8.0",
 		"ext-PDO": "*",
 		"ext-json": "*",
 		"ext-libxml": "*",
-- 
GitLab