Commit bdf9728a authored by Torben Hansen's avatar Torben Hansen Committed by Oliver Bartsch
Browse files

[TASK] Remove unused code in ContentObjectRenderer

The ContentObjectRenderer throws a warning under certain
circumstances in PHP8. The warning is generated by code,
which is unused.

This patch removes the unused code in ContentObjectRenderer.

Resolves: #95921
Releases: master, 11.5
Change-Id: Ifb6f3557434626ec71f37d92181a5b156f6b39e3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72272

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent 0e965504
......@@ -6118,10 +6118,6 @@ class ContentObjectRenderer implements LoggerAwareInterface
// @todo Ugly hack that needs to be cleaned up, with the current architecture
// @todo for exec_Query / getQuery it's the best we can do.
$query = str_replace('###' . $marker . '###', $markerValue, $query);
foreach ($queryParts as $queryPartKey => &$queryPartValue) {
$queryPartValue = str_replace('###' . $marker . '###', $markerValue, $queryPartValue);
}
unset($queryPartValue);
}
return $returnQueryArray ? $this->getQueryArray($queryBuilder) : $query;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment