From 935b834d2a25089de83cdbefbc6f8ff0a4cffe2a Mon Sep 17 00:00:00 2001
From: Nikita Hovratov <nikita.h@live.de>
Date: Mon, 15 Nov 2021 19:58:39 +0100
Subject: [PATCH] [BUGFIX] Fix PHP 8 warning in TcaFlexProcess

Resolves: #95987
Releases: master
Change-Id: Icd868d64e0414fa295f1d03c7cbe102b388ff978
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72182
Tested-by: core-ci <typo3@b13.com>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 .../backend/Classes/Form/FormDataProvider/TcaFlexProcess.php    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexProcess.php b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexProcess.php
index 343ffb41ee8b..55eca13e16b5 100644
--- a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexProcess.php
+++ b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexProcess.php
@@ -570,7 +570,7 @@ class TcaFlexProcess implements FormDataProviderInterface
         $flexFormContainerIdentifier = $flexSectionContainerPreparation['flexFormContainerIdentifier'];
 
         $containerConfiguration = $result['processedTca']['columns'][$fieldName]['config']['ds']
-            ['sheets'][$flexFormSheetName]['ROOT']['el'][$flexFormFieldName]['el'][$flexFormContainerName];
+            ['sheets'][$flexFormSheetName]['ROOT']['el'][$flexFormFieldName]['el'][$flexFormContainerName] ?? [];
 
         if (isset($containerConfiguration['el']) && is_array($containerConfiguration['el'])) {
             $formDataGroup = GeneralUtility::makeInstance(FlexFormSegment::class);
-- 
GitLab