Commit 40486581 authored by Benni Mack's avatar Benni Mack Committed by Andreas Fernandez
Browse files

[BUGFIX] Fix PHP 8 warning in AbstractPlugin

Resolves: #98630
Releases: main, 11.5
Change-Id: Iae48bf68a9f18a33e86d79cf7826617e2b3d48c6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77565


Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 79ca520d
......@@ -1270,6 +1270,11 @@ parameters:
count: 1
path: ../../typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_foreignfield/Classes/Controller/ContentController.php
-
message: "#^Access to protected property TYPO3\\\\CMS\\\\Core\\\\Domain\\\\Repository\\\\PageRepository\\:\\:\\$where_hid_del\\.$#"
count: 2
path: ../../typo3/sysext/core/Tests/FunctionalDeprecated/Domain/Repository/PageRepositoryTest.php
-
message: "#^Parameter \\#2 \\$data of method TYPO3\\\\CMS\\\\Core\\\\Cache\\\\Backend\\\\Typo3DatabaseBackend\\:\\:set\\(\\) expects string, array\\<int, string\\> given\\.$#"
count: 1
......@@ -2577,7 +2582,7 @@ parameters:
-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 2
count: 1
path: ../../typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php
-
......@@ -3139,8 +3144,3 @@ parameters:
message: "#^Else branch is unreachable because previous condition is always true\\.$#"
count: 2
path: ../../typo3/sysext/workspaces/Classes/Service/GridDataService.php
-
message: "#^Access to protected property TYPO3\\\\CMS\\\\Core\\\\Domain\\\\Repository\\\\PageRepository\\:\\:\\$where_hid_del\\.$#"
count: 2
path: ../../typo3/sysext/core/Tests/FunctionalDeprecated/Domain/Repository/PageRepositoryTest.php
......@@ -1320,7 +1320,7 @@ class AbstractPlugin
*/
public function pi_getFFvalue($T3FlexForm_array, $fieldName, $sheet = 'sDEF', $lang = 'lDEF', $value = 'vDEF')
{
$sheetArray = is_array($T3FlexForm_array) ? $T3FlexForm_array['data'][$sheet][$lang] : '';
$sheetArray = $T3FlexForm_array['data'][$sheet][$lang] ?? '';
if (is_array($sheetArray)) {
return $this->pi_getFFvalueFromSheetArray($sheetArray, explode('/', $fieldName), $value);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment