From a7cb263ad35f434e96f2cda382fec95baeefa75e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20Sch=C3=B6lzel?=
<142507449+fschoelzel@users.noreply.github.com>
Date: Tue, 20 Aug 2024 14:00:42 +0200
Subject: [PATCH] [BUGFIX] Refactor type casting for pid in SearchInDocument
(#1309)
---
Classes/Middleware/SearchInDocument.php | 2 +-
Resources/Private/Language/locallang_labels.xlf | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Classes/Middleware/SearchInDocument.php b/Classes/Middleware/SearchInDocument.php
index bf9b3029d..9c0cfdeed 100644
--- a/Classes/Middleware/SearchInDocument.php
+++ b/Classes/Middleware/SearchInDocument.php
@@ -93,7 +93,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
$highlighting = $data['ocrHighlighting'];
$siteFinder = GeneralUtility::makeInstance(SiteFinder::class);
- $site = $siteFinder->getSiteByPageId($parameters['pid']);
+ $site = $siteFinder->getSiteByPageId((int) $parameters['pid']);
// @phpstan-ignore-next-line
foreach ($result as $record) {
diff --git a/Resources/Private/Language/locallang_labels.xlf b/Resources/Private/Language/locallang_labels.xlf
index 1e47b816b..b36e6b23b 100644
--- a/Resources/Private/Language/locallang_labels.xlf
+++ b/Resources/Private/Language/locallang_labels.xlf
@@ -473,7 +473,7 @@
-
+