From e8c42eb127b014c0edb905c5f551299e6d01c4a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20K=C3=A4hm?= Date: Fri, 6 Oct 2023 08:50:26 +0200 Subject: [PATCH] [BUGFIX] Return value getPageItemChangedTime() must be of the type int Fixes the error: Uncaught TYPO3 Exception: Return value of ApacheSolrForTypo3\Solr\IndexQueue\Queue::getPageItemChangedTime() must be of the type int, null returned Fixes: #3806 Ports: #3812 --- Classes/IndexQueue/Queue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/IndexQueue/Queue.php b/Classes/IndexQueue/Queue.php index b77825fdc8..e1abe0ee90 100644 --- a/Classes/IndexQueue/Queue.php +++ b/Classes/IndexQueue/Queue.php @@ -455,7 +455,7 @@ protected function getPageItemChangedTime(array $page): int { if (!empty($page['content_from_pid'])) { // canonical page, get the original page's last changed time - return $this->queueItemRepository->getPageItemChangedTimeByPageUid((int)$page['content_from_pid']); + return $this->queueItemRepository->getPageItemChangedTimeByPageUid((int)$page['content_from_pid']) ?? 0; } return $this->queueItemRepository->getPageItemChangedTimeByPageUid((int)$page['uid']) ?? 0; }