From c23084baf96c427b6a14f106e34d0520547956f5 Mon Sep 17 00:00:00 2001 From: Stefan Froemken Date: Fri, 9 Aug 2024 00:24:15 +0200 Subject: [PATCH] Remove server request build from globals --- Classes/Domain/Factory/QueryInformationFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Domain/Factory/QueryInformationFactory.php b/Classes/Domain/Factory/QueryInformationFactory.php index e3d7023..5723b57 100644 --- a/Classes/Domain/Factory/QueryInformationFactory.php +++ b/Classes/Domain/Factory/QueryInformationFactory.php @@ -68,7 +68,7 @@ public function createNewQueryInformation(): QueryInformation private function getPageUid(): int { - $serverRequest = $GLOBALS['TYPO3_REQUEST'] ?? ServerRequestFactory::fromGlobals(); + $serverRequest = $GLOBALS['TYPO3_REQUEST']; if ($serverRequest instanceof ServerRequestInterface) { $typoScriptFrontendController = $serverRequest->getAttribute('frontend.controller'); if ($typoScriptFrontendController instanceof TypoScriptFrontendController) {