Skip to content

Commit

Permalink
Remove server request build from globals
Browse files Browse the repository at this point in the history
  • Loading branch information
froemken committed Aug 8, 2024
1 parent 86c233d commit c23084b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Factory/QueryInformationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c23084b

Please sign in to comment.