Skip to content

Commit

Permalink
Merge pull request #135 from pagemachine/rootline-utility-argument-type
Browse files Browse the repository at this point in the history
Ensure integer type for UID passed to RootlineUtility
  • Loading branch information
mbrodala authored Jun 20, 2024
2 parents bdda852 + 8b77f61 commit 2b47619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/DataCollector/PagesDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2b47619

Please sign in to comment.