From 8b77f61421d8647fbb802e46fff35e9460746470 Mon Sep 17 00:00:00 2001 From: Mathias Brodala Date: Thu, 20 Jun 2024 16:17:27 +0200 Subject: [PATCH] [BUGFIX] Ensure integer type for UID passed to RootlineUtility The list of page UIDs processed here is the result of a ES query where the values are numeric strings. Since TYPO3v12 the RootlineUtility uses native types and now strictly expects an integer. See https://github.com/TYPO3/typo3/commit/91462d7bccf3325870a04fba9d5ae4904c4219fe --- Classes/DataCollector/PagesDataCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/DataCollector/PagesDataCollector.php b/Classes/DataCollector/PagesDataCollector.php index df72c37..c89fae1 100644 --- a/Classes/DataCollector/PagesDataCollector.php +++ b/Classes/DataCollector/PagesDataCollector.php @@ -188,7 +188,7 @@ protected function filterPageListByRootline(array $pageUids, int $rootlinePageUi foreach ($pageUids as $uid) { try { - $rootLine = GeneralUtility::makeInstance(RootlineUtility::class, $uid)->get(); + $rootLine = GeneralUtility::makeInstance(RootlineUtility::class, (int)$uid)->get(); if (in_array($rootlinePageUid, array_column($rootLine, 'uid'), true)) { $filteredPageUids[] = $uid;