Issue Bug Closed

#100827RedirectStatus::getConflictingRedirects

Lina Wolf 05/08/23, 07:21 updated 07/09/24, 12:56

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();

Reviews 2