From b205d6ebae8e0d5d26feb39707f67d5bd0090065 Mon Sep 17 00:00:00 2001 From: Thomas Hohn Date: Mon, 7 Aug 2023 10:29:09 +0200 Subject: [PATCH] [BUGFIX] PHP 8 warning in ContentObjectRenderer::editIcons Added a null coalescing operator when assigning value to $editUid. Resolves: #101602 Releases: 11.5 Change-Id: Ie19fa72032c57c824322a319deafc441fdb9319e Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80427 Tested-by: core-ci Tested-by: Oliver Klee Tested-by: Benni Mack Reviewed-by: Oliver Klee Reviewed-by: Benni Mack --- .../frontend/Classes/ContentObject/ContentObjectRenderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index a28c8889a87c..55026bade2d3 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -6684,7 +6684,7 @@ public function editIcons($content, $params, array $conf = [], $currentRecord = return $content; } - $editUid = $dataArray['_LOCALIZED_UID'] ?: $currentRecordUID; + $editUid = $dataArray['_LOCALIZED_UID'] ?? $currentRecordUID; // Edit icons imply that the editing action is generally allowed, assuming page and content element permissions permit it. if (!array_key_exists('allow', $conf)) { $conf['allow'] = 'edit';