Actions
Bug #100827
closedRedirectStatus::getConflictingRedirects
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling & Redirect Handling
Target version:
-
Start date:
2023-05-08
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
\TYPO3\CMS\Redirects\Report\Status\RedirectStatus::getConflictingRedirects expects $request to be a valid ServerRequestInterface. However it is called by RedirectStatus::getStatus() in which $request defaults to null even though it is of type ServerRequestInterface not ServerRequestInterface|null.
This causes type error when the $request is not set.
Tested with TYPO3 v12.4.0 and on current main branch by calling
$statusReport = GeneralUtility::makeInstance(Stati\Status::class);
$statusCollection = $statusReport->getSystemStatus();
Actions