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) {